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/snapshot.rb,
lib/elastomer/cli/repository.rb,
lib/elastomer/cli/application.rb

Defined Under Namespace

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

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.



33
34
35
# File 'lib/elastomer/cli.rb', line 33

def self.setup_failure_hook
  Base.extend(FailureHook)
end

.start(*args) ⇒ Object



18
19
20
# File 'lib/elastomer/cli.rb', line 18

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