Sha256: 16d056b433befe9b7b1489510de60c89043f623d241496b140e2f558be60c397

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

module Ruby
  module Terraform
    module Tasks
      class DestroyTask < BaseTask
        attr_accessor :state
        attr_accessor :vars
        attr_accessor :auto_approve

        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
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rake-terraform-wrapper-0.3.3 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.3.2 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.3.1 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.3.0 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.2.3 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.2.2 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.2.1 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.2.0 lib/ruby/terraform/tasks/destroy_task.rb
rake-terraform-wrapper-0.1.0 lib/ruby/terraform/tasks/destroy_task.rb