class Ruby::Terraform::Tasks::DestroyTask

Attributes

auto_approve[RW]
state[RW]
vars[RW]

Public Instance Methods

define() click to toggle source
# File lib/ruby/terraform/tasks/destroy_task.rb, line 9
def define
  desc description || "Destroy #{configuration_name} using terraform"
  task task_name => Array(deps) do
    Commands::DestroyCommand.new(dir: dir, state: state, vars: vars, auto_approve: auto_approve).execute(show_command: show_command, live: show_output)
  end
end