Module: Terradactyl::Terraform::Subcommands::Init

Included in:
Rev015::Init
Defined in:
lib/terradactyl/terraform/commands/init.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
24
# File 'lib/terradactyl/terraform/commands/init.rb', line 7

def defaults
  {
    'backend' => true,
    'backend-config' => nil,
    'from-module' => nil,
    'get' => true,
    'get-plugins' => true,
    'input' => true,
    'lock' => true,
    'lock-timeout' => '0s',
    'plugin-dir' => nil,
    'upgrade' => false,
    'verify-plugins' => true,
    'no-color' => false,
    'force-copy' => false,
    'reconfigure' => false
  }
end

#switchesObject



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

def switches
  %w[
    no-color
    force-copy
    reconfigure
  ]
end