Class: Terraspace::CLI::Commander
- Defined in:
- lib/terraspace/cli/commander.rb
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Commander
constructor
A new instance of Commander.
- #run ⇒ Object
Methods included from Util::Pretty
Methods included from Util::Sure
Methods included from Util::Logging
Constructor Details
#initialize(name, options = {}) ⇒ Commander
Returns a new instance of Commander.
3 4 5 6 |
# File 'lib/terraspace/cli/commander.rb', line 3 def initialize(name, ={}) @name = name super() end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 |
# File 'lib/terraspace/cli/commander.rb', line 8 def run Terraspace::Builder.new().run unless [:build] # Up already ran build Init.new().run Terraspace::Terraform::Runner.new(@name, ).run end |