Class: SimplyGenius::Atmos::Commands::Plan

Inherits:
Terraform show all
Defined in:
lib/simplygenius/atmos/commands/plan.rb

Instance Attribute Summary

Attributes inherited from Terraform

#auto_init

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Terraform

#init_automatically, #init_shared_plugins, #parse

Methods included from UI

#agree, #ask, #choose, color_enabled, color_enabled=, #display, #error, #notify, #say, #warn

Class Method Details

.descriptionObject



9
10
11
# File 'lib/simplygenius/atmos/commands/plan.rb', line 9

def self.description
  "Runs terraform plan"
end

Instance Method Details

#executeObject



13
14
15
16
17
18
19
20
21
# File 'lib/simplygenius/atmos/commands/plan.rb', line 13

def execute
  args = ["plan"]
  args << "--get-modules" unless Atmos.config["atmos.terraform.disable_auto_modules"].to_s == "true"
  @terraform_arguments.insert(0, *args)

  self.auto_init = true

  super
end