Class: Cloudspin::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/cloudspin/cli.rb', line 66

def self.exit_on_failure?
  true
end

Instance Method Details

#infoObject



29
30
31
# File 'lib/cloudspin/cli.rb', line 29

def info
  puts "Configuration file: #{options[:file]}"
end

#planObject



14
15
16
17
18
19
20
21
# File 'lib/cloudspin/cli.rb', line 14

def plan
  puts "Get configuration from #{options[:file]}" if options[:file]
  stack = instance
  options[:file].each { |config_file|
    stack.add_config_from_yaml(config_file)
  }
  stack.plan
end

#versionObject



24
25
26
# File 'lib/cloudspin/cli.rb', line 24

def version
  puts "cloudspin-stack: #{Cloudspin::Stack::VERSION}"
end