Class: Cloudspin::CLI
- Inherits:
-
Thor
- Object
- Thor
- Cloudspin::CLI
- Defined in:
- lib/cloudspin/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
66 67 68 |
# File 'lib/cloudspin/cli.rb', line 66 def self.exit_on_failure? true end |
Instance Method Details
#info ⇒ Object
29 30 31 |
# File 'lib/cloudspin/cli.rb', line 29 def info puts "Configuration file: #{[:file]}" end |
#plan ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/cloudspin/cli.rb', line 14 def plan puts "Get configuration from #{[:file]}" if [:file] stack = instance [:file].each { |config_file| stack.add_config_from_yaml(config_file) } stack.plan end |