Sha256: e53bf576f04aff7394d53be5d2f8ea041ab17936252dccb02cf20205d9bf4f4d

Contents?: true

Size: 815 Bytes

Versions: 5

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'
require_relative '../options/common'

module RubyTerraform
  module Commands
    class Init < Base
      include RubyTerraform::Options::Common

      def subcommands
        %w[init]
      end

      def options # rubocop:disable Metrics/MethodLength
        %w[
          -backend
          -backend-config
          -force-copy
          -from-module
          -get
          -get-plugins
          -input
          -lock
          -lock-timeout
          -no-color
          -plugin-dir
          -reconfigure
          -upgrade
          -verify-plugins
        ] + super
      end

      def arguments(parameters)
        [parameters[:path]]
      end

      def parameter_defaults(_parameters)
        { backend_config: {} }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/commands/init.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/commands/init.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/commands/init.rb
ruby-terraform-0.65.0.pre.11 lib/ruby_terraform/commands/init.rb
ruby-terraform-0.65.0.pre.10 lib/ruby_terraform/commands/init.rb