Class: Ruby::Terraform::Tasks::ApplyTask
- Defined in:
- lib/ruby/terraform/tasks/apply_task.rb
Instance Attribute Summary collapse
-
#auto_approve ⇒ Object
Returns the value of attribute auto_approve.
-
#state ⇒ Object
Returns the value of attribute state.
-
#vars ⇒ Object
Returns the value of attribute vars.
Attributes inherited from BaseTask
#configuration_name, #deps, #description, #dir, #show_command, #show_output, #task_name
Instance Method Summary collapse
Methods inherited from BaseTask
Constructor Details
This class inherits a constructor from Ruby::Terraform::Tasks::BaseTask
Instance Attribute Details
#auto_approve ⇒ Object
Returns the value of attribute auto_approve.
7 8 9 |
# File 'lib/ruby/terraform/tasks/apply_task.rb', line 7 def auto_approve @auto_approve end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/ruby/terraform/tasks/apply_task.rb', line 5 def state @state end |
#vars ⇒ Object
Returns the value of attribute vars.
6 7 8 |
# File 'lib/ruby/terraform/tasks/apply_task.rb', line 6 def vars @vars end |
Instance Method Details
#define ⇒ Object
9 10 11 12 13 14 |
# File 'lib/ruby/terraform/tasks/apply_task.rb', line 9 def define desc description || "Apply #{configuration_name} using terraform" task task_name => Array(deps) do Commands::ApplyCommand.new(dir: dir, state: state, vars: vars, auto_approve: auto_approve).execute(show_command: show_command, live: show_output) end end |