Sha256: 25c06ba74b3f25034d5a567368bea671ab8e1aaf2640b891d6d5f85ae38bb5f2

Contents?: true

Size: 823 Bytes

Versions: 5

Compression:

Stored size: 823 Bytes

Contents

# frozen_string_literal: true

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

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

      def subcommands
        %w[plan]
      end

      def options # rubocop:disable Metrics/MethodLength
        %w[
          -compact-warnings
          -destroy
          -detailed-exitcode
          -input
          -lock
          -lock-timeout
          -no-color
          -out
          -parallelism
          -refresh
          -state
          -target
          -var
          -var-file
        ] + super
      end

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

      def parameter_defaults(_parameters)
        { vars: {}, var_files: [], targets: [] }
      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/plan.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/commands/plan.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/commands/plan.rb
ruby-terraform-0.65.0.pre.11 lib/ruby_terraform/commands/plan.rb
ruby-terraform-0.65.0.pre.10 lib/ruby_terraform/commands/plan.rb