Sha256: a0c1d9d3b3f417cfb57bd0f932fbdd98db5d2a8bf6d18102bf182aa20ad2a2d9

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

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

      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

1 entries across 1 versions & 1 rubygems

Version Path
awspec-0.0.1 lib/awspec/helper/type.rb