Sha256: accf05cc0ba493d488439d9b3d6b68c7214b3abdf5e0ed03f9c8195a3c95e1fd

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

module Awspec
  module Helper
    module Type
      TYPES = %w(
        base ec2 rds rds_db_parameter_group security_group
        vpc s3 route53_hosted_zone auto_scaling_group subnet
        route_table ebs elb
      )

      TYPES.each do |type|
        require "awspec/type/#{type}"
        define_method type do |*args|
          name = args.first
          eval "Awspec::Type::#{type.to_camel_case}.new(name)"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
awspec-0.6.4 lib/awspec/helper/type.rb
awspec-0.6.3 lib/awspec/helper/type.rb
awspec-0.6.2 lib/awspec/helper/type.rb
awspec-0.6.1 lib/awspec/helper/type.rb
awspec-0.6.0 lib/awspec/helper/type.rb