Sha256: 9d03a9e58d848eb120b90ac67459abc6ed451d119790bf73b31fcf966db66cb3

Contents?: true

Size: 616 Bytes

Versions: 9

Compression:

Stored size: 616 Bytes

Contents

module Ruby
  module Terraform
    module Commands
      class OutputCommand
        include ExecutionSupport

        attr_accessor :dir
        attr_accessor :state
        attr_accessor :json
        attr_accessor :name

        def initialize(opts = {})
          @dir = opts[:dir]
          @state = opts[:state]
          @json = opts[:json]
          @name = opts[:name]
        end

        def command
          cmd = %W[#{tf_binary} output]

          cmd += ['-state', state] if state
          cmd += ['-json'] if json
          cmd += [name] if name
          cmd
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rake-terraform-wrapper-0.3.3 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.3.2 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.3.1 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.3.0 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.2.3 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.2.2 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.2.1 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.2.0 lib/ruby/terraform/commands/output_command.rb
rake-terraform-wrapper-0.1.0 lib/ruby/terraform/commands/output_command.rb