Class: Elasticsnap::Cli::Base

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/elasticsnap/cli/base.rb

Direct Known Subclasses

Application

Class Method Summary collapse

Class Method Details

Fixes thor’s banners when used with :default namespace



13
14
15
# File 'lib/elasticsnap/cli/base.rb', line 13

def self.banner(command, namespace = nil, subcommand = false)
  "#{basename} #{command.formatted_usage(self, $thor_runner, subcommand)}"
end

.exit_on_failure?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/elasticsnap/cli/base.rb', line 8

def self.exit_on_failure?
  true
end