Sha256: 705dc458fb61975501ecd3937a784e10058e315a5fc483978d83120d3587c94f

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

module Awspec
  module Helper
    module Type
      types = %w(
        base ec2 rds rds_db_parameter_group security_group
        vpc s3 route53_hosted_zone
      )

      types.each { |type| require "awspec/type/#{type}" }

      types.each do |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

6 entries across 6 versions & 1 rubygems

Version Path
awspec-0.2.3 lib/awspec/helper/type.rb
awspec-0.2.2 lib/awspec/helper/type.rb
awspec-0.2.1 lib/awspec/helper/type.rb
awspec-0.2.0 lib/awspec/helper/type.rb
awspec-0.1.1 lib/awspec/helper/type.rb
awspec-0.1.0 lib/awspec/helper/type.rb