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