Class: Ruby::Terraform::Tasks::InitTask
- Defined in:
- lib/ruby/terraform/tasks/init_task.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#backend_config ⇒ Object
Returns the value of attribute backend_config.
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
#backend ⇒ Object
Returns the value of attribute backend.
5 6 7 |
# File 'lib/ruby/terraform/tasks/init_task.rb', line 5 def backend @backend end |
#backend_config ⇒ Object
Returns the value of attribute backend_config.
6 7 8 |
# File 'lib/ruby/terraform/tasks/init_task.rb', line 6 def backend_config @backend_config end |
Instance Method Details
#define ⇒ Object
8 9 10 11 12 13 |
# File 'lib/ruby/terraform/tasks/init_task.rb', line 8 def define desc description || "Initialize #{configuration_name} using terraform" task task_name => Array(deps) do Commands::InitCommand.new(dir: dir, backend: backend, backend_config: backend_config).execute(show_command: show_command, live: show_output) end end |