Sha256: 25cafa840ef70d3b38a8b9cd85687922110c7e3b334a5c162f7e3cfc544c2ee8
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
module Awspec module Helper module Type require 'awspec/type/base' TYPES = %w( ami autoscaling_group cloudwatch_alarm directconnect_virtual_interface ebs ec2 elasticache elasticache_cache_parameter_group elb iam_group iam_policy iam_role iam_user lambda launch_configuration nat_gateway network_acl rds rds_db_parameter_group route53_hosted_zone route_table s3_bucket security_group ses_identity subnet vpc ) 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 # deprecated resource type def auto_scaling_group(name) puts '' puts Color.on_red(Color.white('!!! `auto_scaling_group` type is deprecated. use `autoscaling_group` !!!')) Awspec::Type::AutoscalingGroup.new(name) end def s3(name) puts '' puts Color.on_red(Color.white('!!! `s3` type is deprecated. use `s3_bucket` !!!')) Awspec::Type::S3Bucket.new(name) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
awspec-0.33.0 | lib/awspec/helper/type.rb |
awspec-0.32.0 | lib/awspec/helper/type.rb |
awspec-0.31.0 | lib/awspec/helper/type.rb |
awspec-0.30.0 | lib/awspec/helper/type.rb |