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