class Ruby::Terraform::Tasks::BaseTask

Attributes

configuration_name[RW]

name of configuration

deps[RW]

the task dependencies

description[RW]

the description of the task

dir[RW]

the working dir of `terraform` command

show_command[RW]

should the terraform command be shown on the console. Defaults to `false`.

show_output[RW]

should the terraform output be shown on the console. Defaults to `false`.

task_name[RW]

name of task

Public Class Methods

new(configuration_name, task_name = nil) { |self| ... } click to toggle source
# File lib/ruby/terraform/tasks/base_task.rb, line 28
def initialize(configuration_name, task_name = nil)
  @configuration_name = configuration_name
  @task_name = task_name
  @deps = []

  if @task_name.is_a?(Hash)
    @deps = @task_name.values.first
    @task_name = @task_name.keys.first
  end

  yield self if block_given?
  define
end