Class: Terraspace::CLI::Commander
- Inherits:
-
Base
- Object
- Base
- Terraspace::CLI::Commander
show all
- Defined in:
- lib/terraspace/cli/commander.rb
Instance Method Summary
collapse
#pretty_path, #pretty_time
Methods included from Util::Sure
#sure?
#logger
Constructor Details
#initialize(name, options = {}) ⇒ Commander
3
4
5
6
|
# File 'lib/terraspace/cli/commander.rb', line 3
def initialize(name, options={})
@name = name
super(options)
end
|
Instance Method Details
#run ⇒ Object
8
9
10
11
12
13
|
# File 'lib/terraspace/cli/commander.rb', line 8
def run
Terraspace::Builder.new(@options).run unless @options[:build]
Init.new(@options).run
@runner = Terraspace::Terraform::Runner.new(@name, @options)
@runner.run
end
|