Module: Terradactyl::Terraform::Subcommands::Destroy

Included in:
Rev015::Destroy
Defined in:
lib/terradactyl/terraform/commands/destroy.rb

Instance Method Summary collapse

Instance Method Details

#defaultsObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/terradactyl/terraform/commands/destroy.rb', line 7

def defaults
  {
    'backup' => nil,
    'auto-approve' => false,
    'force' => false,
    'lock' => true,
    'lock-timeout' => '0s',
    'no-color' => false,
    'parallelism' => 10,
    'refresh' => true,
    'state' => 'terraform.tfstate',
    'state-out' => nil,
    # 'target'      => [], # not implemented
    # 'var'         => [], # not implemented
    'var-file' => nil
  }
end

#switchesObject



25
26
27
28
29
30
31
# File 'lib/terradactyl/terraform/commands/destroy.rb', line 25

def switches
  %w[
    auto-approve
    force
    no-color
  ]
end