Class: Elasticsnap::Cli::Base
- Inherits:
-
Thor
- Object
- Thor
- Elasticsnap::Cli::Base
- Includes:
- Thor::Actions
- Defined in:
- lib/elasticsnap/cli/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.banner(command, namespace = nil, subcommand = false) ⇒ Object
Fixes thor’s banners when used with :default namespace.
- .exit_on_failure? ⇒ Boolean
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
Fixes thor’s banners when used with :default namespace
13 14 15 |
# File 'lib/elasticsnap/cli/base.rb', line 13 def self.(command, namespace = nil, subcommand = false) "#{basename} #{command.formatted_usage(self, $thor_runner, subcommand)}" end |
.exit_on_failure? ⇒ Boolean
8 9 10 |
# File 'lib/elasticsnap/cli/base.rb', line 8 def self.exit_on_failure? true end |