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
101 102 103 |
# File 'lib/cloudspin/cli.rb', line 101 def self.exit_on_failure? true end |
Instance Method Details
#down ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/cloudspin/cli.rb', line 44 def down if [:plan] && [:dry] puts instance.plan_dry(plan_destroy: true) elsif [:plan] && ! [:dry] puts instance.plan(plan_destroy: true) elsif ! [:plan] && [:dry] puts instance.down_dry else instance.down end end |
#info ⇒ Object
62 63 64 |
# File 'lib/cloudspin/cli.rb', line 62 def info puts "Configuration files: #{instance_configuration_files}" end |
#up ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cloudspin/cli.rb', line 29 def up if [:plan] && [:dry] puts instance.plan_dry elsif [:plan] && ! [:dry] puts instance.plan elsif ! [:plan] && [:dry] puts instance.up_dry else instance.up end end |
#version ⇒ Object
57 58 59 |
# File 'lib/cloudspin/cli.rb', line 57 def version puts "cloudspin-stack: #{Cloudspin::Stack::VERSION}" end |