Sha256: f96686b26e4e29b719c4c6756fa749ccc1dec814ee46008e6c0cb12df0732f61

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 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 Rev1_02
      module Init
        include Terradactyl::Terraform::Rev015::Init
      end
    end

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

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

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

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

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

    module Commands
      class Init < Base
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terradactyl-terraform-1.7.0 lib/terradactyl/terraform/commands/init.rb