Sha256: e09da9f9187672d0db5c262bdbf079c3e573c3e4ccb7646eec746561323481e7

Contents?: true

Size: 409 Bytes

Versions: 16

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Terradactyl
  module Terraform
    module Commands
      class Options < OpenStruct
        def initialize(hash = {})
          super(defaults.merge(hash))
          yield(self) if block_given?
        end

        def defaults
          {
            echo: false,
            quiet: false,
            environment: {}
          }
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
terradactyl-terraform-1.8.2 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.8.1 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.8.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.7.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.6.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.5.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.4.1 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.4.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.3.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.2.1 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.2.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.1.2 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.1.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-1.0.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-0.15.0 lib/terradactyl/terraform/commands/options.rb
terradactyl-terraform-0.13.0 lib/terradactyl/terraform/commands/options.rb