Sha256: bda9c130f0b13d3395e607cab706c65ec55b676a514ca06f11b0efa8f4dffdff

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module Terradactyl
  module Terraform
    module Subcommands
      module Init
        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

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

    module Rev015
      module Init
        include Terradactyl::Terraform::Subcommands::Init

        def defaults
          super.reject { |k, _v| k == 'lock' }
        end

        def arguments
          super.reject { |k, _v| k == 'lock' }
        end
      end
    end

    module Rev1_00
      module Init
        include Terradactyl::Terraform::Rev015::Init
      end
    end

    module Rev1_01
      module Init
        include Terradactyl::Terraform::Rev015::Init
      end
    end

    module Commands
      class Init < Base
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terradactyl-terraform-1.1.2 lib/terradactyl/terraform/commands/init.rb
terradactyl-terraform-1.1.0 lib/terradactyl/terraform/commands/init.rb