Sha256: 35dddf2697440cee690ad89449bca50d17515403997ac5024e1248667ef9d52c

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module RubyTerraform
  module Commands
    class Import < Base
      def options
        %w[
          -config
          -backup
          -input
          -no-color
          -state
          -var
          -var-file
        ]
      end

      def subcommands(_parameters)
        %w[import]
      end

      def arguments(parameters)
        [parameters[:address], parameters[:id]]
      end

      def parameter_defaults(_parameters)
        { vars: {}, var_files: [] }
      end

      def parameter_overrides(parameters)
        { backup: parameters[:no_backup] ? '-' : parameters[:backup] }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-terraform-0.65.0.pre.9 lib/ruby_terraform/commands/import.rb