Class: Dependencies::Terraform
Constant Summary
Constants inherited
from Dependency
Dependency::DESCRIPTION_TYPE_WIDTH
Instance Attribute Summary
Attributes inherited from Dependency
#exit_code, #name, #output
Instance Method Summary
collapse
Methods inherited from Dependency
#initialize, #should_meet?, #success?, #type
Constructor Details
This class inherits a constructor from Dependency
Instance Method Details
#always_act? ⇒ Boolean
11
12
13
|
# File 'lib/dependencies/terraform.rb', line 11
def always_act?
true
end
|
#meet ⇒ Object
15
16
17
|
# File 'lib/dependencies/terraform.rb', line 15
def meet
execute("cd #{name} && terraform init && terraform apply -input=false --auto-approve")
end
|
#met? ⇒ Boolean
7
8
9
|
# File 'lib/dependencies/terraform.rb', line 7
def met?
false
end
|
#unmeet ⇒ Object
19
20
21
|
# File 'lib/dependencies/terraform.rb', line 19
def unmeet
execute("cd #{name} && terraform destroy -input=false --auto-approve")
end
|