Class: Superbot::CLI::RootCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/superbot/cli/root_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



16
17
18
19
20
21
# File 'lib/superbot/cli/root_command.rb', line 16

def self.run
  super
rescue StandardError => exc
  warn exc.message
  warn exc.backtrace.join("\n")
end

Instance Method Details

#subcommand_missing(name) ⇒ Object



23
24
25
26
27
# File 'lib/superbot/cli/root_command.rb', line 23

def subcommand_missing(name)
  return super unless %w(cloud local).include?(name)

  abort "Subcommand '#{name}' requires gem superbot-#{name} to be installed"
end