lib/gitlab/shell.rb in gitlab-3.5.0 vs lib/gitlab/shell.rb in gitlab-3.6.0
- old
+ new
@@ -60,17 +60,17 @@
def completion
proc { |str| actions.map(&:to_s).grep(/^#{Regexp.escape(str)}/) }
end
# Execute a given command with arguements
- def execute(cmd = command, args = arguments)
+ def execute(cmd=command, args=arguments)
if actions.include?(cmd.to_sym)
confirm_command(cmd)
gitlab_helper(cmd, args)
else
- raise "Unknown command: #{cmd}. " +
- "See the 'help' for a list of valid commands."
+ fail "Unknown command: #{cmd}. " \
+ "See the 'help' for a list of valid commands."
end
end
def quit_shell
history.save
@@ -78,8 +78,7 @@
end
def history
@history ||= History.new
end
-
- end # class << self
+ end # class << self
end