lib/open_project/gitolite/utils/exec.rb
def execute(command, args = [], opts = {}, &block)
        Open3.capture3(command, *args, opts, &block)
      rescue => e
        error_msg = "Exception occured executing `#{command} #{args.join(" ")}` : #{e.message}"
        OpenProject::Gitolite.logger.debug(error_msg)
        raise OpenProject::Gitolite::Error::GitoliteCommandException.new(command, error_msg)
      end
# Executes the given command and a list of parameters on the shell
# and returns stdout, stderr, and the exit code.
#
# If the operation throws an exception or the operation we rethrow a
# +GitoliteCommandException+ with a meaningful error message.
Executes the given command and a list of parameters on the shell
and returns stdout, stderr, and the exit code.

If the operation throws an exception or the operation we rethrow a
+GitoliteCommandException+ with a meaningful error message.
Executes the given command and a list of parameters on the shell and returns stdout stderr and the exit code . If the operation throws an exception or the operation we rethrow a + GitoliteCommandException + with a meaningful error message .
def execute(command, args = [], opts = {}, &block)
        Open3.capture3(command, *args, opts, &block)
      rescue => e
        error_msg = "Exception occured executing `#{command} #{args.join(" ")}` : #{e.message}"
        OpenProject::Gitolite.logger.debug(error_msg)
        raise OpenProject::Gitolite::Error::GitoliteCommandException.new(command, error_msg)
      end
def execute ( command , args = [ ] , opts = { } , & block ) Open3 . capture3 ( command , * args , opts , & block ) rescue => e error_msg = "Exception occured executing `#{command} #{args.join(" ")}` : #{e.message}" OpenProject :: Gitolite . logger . debug ( error_msg ) raise OpenProject :: Gitolite :: Error :: GitoliteCommandException . new ( command , error_msg ) end
Executes the given command and a list of parameters on the shell
and returns stdout, stderr, and the exit code.
Executes the given command and a list of parameters on the shell and returns stdout stderr and the exit code .
command
args
opts
block