Class: Terraspace::CLI::Commander

Inherits:
Base
  • Object
show all
Defined in:
lib/terraspace/cli/commander.rb

Instance Method Summary collapse

Methods included from Util::Pretty

#pretty_path, #pretty_time

Methods included from Util::Sure

#sure?

Methods included from Util::Logging

#logger

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, options={})
  @name = name
  super(options)
end

Instance Method Details

#runObject



8
9
10
11
12
13
# File 'lib/terraspace/cli/commander.rb', line 8

def run
  Terraspace::Builder.new(@options).run unless @options[:build] # Up already ran build
  Init.new(@options).run
  @runner = Terraspace::Terraform::Runner.new(@name, @options)
  @runner.run
end