Class: ConsulStockpile::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/consul_stockpile/cli.rb

Instance Method Summary collapse

Instance Method Details

#bootstrap_external_servicesObject



26
27
28
29
30
# File 'lib/consul_stockpile/cli.rb', line 26

def bootstrap_external_services
  $stdout.sync = true
  require 'consul_stockpile/bootstrap_external_services'
  BootstrapExternalServices.call
end

#startObject



15
16
17
18
19
20
21
22
23
# File 'lib/consul_stockpile/cli.rb', line 15

def start
  $stdout.sync = true
  require 'consul_stockpile/run_stockpile'
  RunStockpile.call(
    bucket: options[:bucket],
    name: options[:name],
    verbose: options[:verbose]
  )
end

#versionObject



6
7
8
9
# File 'lib/consul_stockpile/cli.rb', line 6

def version
  require 'consul_stockpile/version'
  say ConsulStockpile::VERSION.to_s
end