Sha256: 659f88b67a9d3f6ef7a60cbbcfb4c3d6b886736eee23ee08852e6a4f68edf1f8

Contents?: true

Size: 704 Bytes

Versions: 6

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

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

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

      def subcommands
        %w[state replace-provider]
      end

      def options
        %w[
          -auto-approve
          -backup
          -lock
          -lock-timeout
          -state
          -ignore-remote-version
        ] + super
      end

      def arguments(parameters)
        [parameters[:from], parameters[:to]]
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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