Sha256: 8193e71a86bf71e9ad590aa760ed2c17e5e1f483f13ff55234b28ed3b1b9f739

Contents?: true

Size: 701 Bytes

Versions: 6

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

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

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

      def subcommands
        %w[untaint]
      end

      def options
        %w[
          -allow-missing
          -backup
          -lock
          -lock-timeout
          -no-color
          -state
          -state-out
          -ignore-remote-version
        ] + super
      end

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