Class: Superbot::CLI::RootCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Superbot::CLI::RootCommand
- Defined in:
- lib/superbot/cli/root_command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
18 19 20 21 22 23 |
# File 'lib/superbot/cli/root_command.rb', line 18 def self.run super rescue StandardError => exc warn exc. warn exc.backtrace.join("\n") end |
Instance Method Details
#subcommand_missing(name) ⇒ Object
25 26 27 28 29 |
# File 'lib/superbot/cli/root_command.rb', line 25 def subcommand_missing(name) return super unless %w(cloud local).include?(name) abort "Subcommand '#{name}' requires gem superbot-#{name} to be installed" end |