Class: Terraspace::CLI::Up

Inherits:
Base
  • Object
show all
Includes:
TfcConcern
Defined in:
lib/terraspace/cli/up.rb

Instance Method Summary collapse

Methods included from TfcConcern

#backend, #tfc?

Methods inherited from Base

#initialize

Methods included from Util::Pretty

#pretty_path, #pretty_time

Methods included from Util::Sure

#sure?

Methods included from Util::Logging

#logger

Constructor Details

This class inherits a constructor from Terraspace::CLI::Base

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
# File 'lib/terraspace/cli/up.rb', line 7

def run
  build
  if @options[:yes] && !@options[:plan] && !tfc?
    plan
    Commander.new("apply", @options.merge(plan: plan_path)).run
  else
    Commander.new("apply", @options).run
  end
end