Sha256: 9e105a9b6390fe6ce3e7f0af6e2b1a4f3aa4b68ea7a903e67265698bfa2f3217

Contents?: true

Size: 588 Bytes

Versions: 7

Compression:

Stored size: 588 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 lambda iam_user iam_group iam_role
        iam_policy elasticache elasticache_cache_parameter_group
        cloudwatch_alarm ses_identity
      )

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
awspec-0.19.0 lib/awspec/helper/type.rb
awspec-0.18.2 lib/awspec/helper/type.rb
awspec-0.18.1 lib/awspec/helper/type.rb
awspec-0.18.0 lib/awspec/helper/type.rb
awspec-0.17.1 lib/awspec/helper/type.rb
awspec-0.17.0 lib/awspec/helper/type.rb
awspec-0.16.0 lib/awspec/helper/type.rb