Method: Gitlab::Shell.execute

Defined in:
lib/gitlab/shell.rb

.execute(cmd = command, args = arguments) ⇒ Object

Execute a given command with arguements



65
66
67
68
69
70
# File 'lib/gitlab/shell.rb', line 65

def execute(cmd=command, args=arguments)
  raise "Unknown command: #{cmd}. See the 'help' for a list of valid commands." unless actions.include?(cmd.to_sym)

  confirm_command(cmd)
  gitlab_helper(cmd, args)
end