Module: Elastomer::CLI

Defined in:
lib/elastomer/cli.rb,
lib/elastomer/cli/base.rb,
lib/elastomer/cli/node.rb,
lib/elastomer/cli/index.rb,
lib/elastomer/cli/cluster.rb,
lib/elastomer/cli/application.rb

Defined Under Namespace

Modules: FailureHook Classes: Application, Base, Cluster, Index, Node

Class Method Summary collapse

Class Method Details

.setup_failure_hookObject

Force Thor to exit immediately with nonzero status if a command fails. This is probably what you want when running from the command line.



31
32
33
# File 'lib/elastomer/cli.rb', line 31

def self.setup_failure_hook
  Base.extend(FailureHook)
end

.start(*args) ⇒ Object



16
17
18
# File 'lib/elastomer/cli.rb', line 16

def self.start(*args)
  Elastomer::CLI::Application.start(*args)
end