Sha256: c44ae9902a695d85aad85958767c1938cad735b4939226a1001cb0c521c6aa1f

Contents?: true

Size: 508 Bytes

Versions: 69

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

require_relative 'types/standard'
require_relative 'types/flag'

module RubyTerraform
  module Options
    module Types
      def self.standard(name, value, **opts)
        Standard.new(name, value, **opts)
      end

      def self.flag(name, value)
        Flag.new(name, value)
      end

      def self.resolve(type)
        case type
        when :standard then Types::Standard
        when :flag then Types::Flag
        else type
        end
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
ruby-terraform-1.7.0.pre.16 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.15 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.14 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.13 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.12 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.11 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.10 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.9 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.8 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.7 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.6 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.5 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.4 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.3 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.2 lib/ruby_terraform/options/types.rb
ruby-terraform-1.7.0.pre.1 lib/ruby_terraform/options/types.rb
ruby-terraform-1.6.0 lib/ruby_terraform/options/types.rb
ruby-terraform-1.6.0.pre.6 lib/ruby_terraform/options/types.rb
ruby-terraform-1.6.0.pre.5 lib/ruby_terraform/options/types.rb
ruby-terraform-1.6.0.pre.4 lib/ruby_terraform/options/types.rb