Sha256: e5e3981ef9d65539df7faece7d9888d17c0b7c60288e1a70b787eacec3a69ae9

Contents?: true

Size: 669 Bytes

Versions: 6

Compression:

Stored size: 669 Bytes

Contents

# frozen_string_literal: true

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

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

      def subcommands
        %w[state mv]
      end

      def options
        %w[
          -backup
          -backup-out
          -state
          -state-out
          -ignore-remote-version
        ] + super
      end

      def arguments(parameters)
        [parameters[:source], parameters[:destination]]
      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_move.rb
ruby-terraform-0.65.0.pre.14 lib/ruby_terraform/commands/state_move.rb
ruby-terraform-0.65.0.pre.13 lib/ruby_terraform/commands/state_move.rb
ruby-terraform-0.65.0.pre.12 lib/ruby_terraform/commands/state_move.rb
ruby-terraform-0.65.0.pre.11 lib/ruby_terraform/commands/state_move.rb
ruby-terraform-0.65.0.pre.10 lib/ruby_terraform/commands/state_move.rb