Method: Gitlab::Shell.execute

Defined in:
lib/gitlab/shell.rb

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

Execute a given command with arguements

[View source]

67
68
69
70
71
72
# File 'lib/gitlab/shell.rb', line 67

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