lib/terradactyl/terraform/commands/destroy.rb in terradactyl-terraform-0.13.0 vs lib/terradactyl/terraform/commands/destroy.rb in terradactyl-terraform-0.15.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module Terradactyl
module Terraform
- module Rev011
+ module Subcommands
module Destroy
def defaults
{
'backup' => nil,
'auto-approve' => false,
@@ -30,12 +30,24 @@
]
end
end
end
- module Rev012
+ module Rev015
module Destroy
- include Rev011::Destroy
+ include Terradactyl::Terraform::Subcommands::Destroy
+
+ def defaults
+ super.reject { |k, _v| k == 'force' }
+ end
+
+ def switches
+ super.reject { |e| e == 'force' }
+ end
+
+ def arguments
+ super.reject { |k, _v| k == 'force' }
+ end
end
end
module Commands
class Destroy < Base