Module: Awspec::Generator::Doc::Type
- Defined in:
- lib/awspec/generator/doc/type.rb,
lib/awspec/generator/doc/type/ami.rb,
lib/awspec/generator/doc/type/ebs.rb,
lib/awspec/generator/doc/type/ec2.rb,
lib/awspec/generator/doc/type/elb.rb,
lib/awspec/generator/doc/type/kms.rb,
lib/awspec/generator/doc/type/rds.rb,
lib/awspec/generator/doc/type/vpc.rb,
lib/awspec/generator/doc/type/base.rb,
lib/awspec/generator/doc/type/lambda.rb,
lib/awspec/generator/doc/type/subnet.rb,
lib/awspec/generator/doc/type/iam_role.rb,
lib/awspec/generator/doc/type/iam_user.rb,
lib/awspec/generator/doc/type/iam_group.rb,
lib/awspec/generator/doc/type/s3_bucket.rb,
lib/awspec/generator/doc/type/cloudtrail.rb,
lib/awspec/generator/doc/type/iam_policy.rb,
lib/awspec/generator/doc/type/ecs_cluster.rb,
lib/awspec/generator/doc/type/ecs_service.rb,
lib/awspec/generator/doc/type/elasticache.rb,
lib/awspec/generator/doc/type/nat_gateway.rb,
lib/awspec/generator/doc/type/network_acl.rb,
lib/awspec/generator/doc/type/route_table.rb,
lib/awspec/generator/doc/type/vpn_gateway.rb,
lib/awspec/generator/doc/type/waf_web_acl.rb,
lib/awspec/generator/doc/type/ses_identity.rb,
lib/awspec/generator/doc/type/elasticsearch.rb,
lib/awspec/generator/doc/type/ecr_repository.rb,
lib/awspec/generator/doc/type/security_group.rb,
lib/awspec/generator/doc/type/vpn_connection.rb,
lib/awspec/generator/doc/type/cloudwatch_alarm.rb,
lib/awspec/generator/doc/type/cloudwatch_event.rb,
lib/awspec/generator/doc/type/customer_gateway.rb,
lib/awspec/generator/doc/type/autoscaling_group.rb,
lib/awspec/generator/doc/type/network_interface.rb,
lib/awspec/generator/doc/type/ecs_task_definition.rb,
lib/awspec/generator/doc/type/route53_hosted_zone.rb,
lib/awspec/generator/doc/type/launch_configuration.rb,
lib/awspec/generator/doc/type/ecs_container_instance.rb,
lib/awspec/generator/doc/type/rds_db_parameter_group.rb,
lib/awspec/generator/doc/type/cloudfront_distribution.rb,
lib/awspec/generator/doc/type/elastictranscoder_pipeline.rb,
lib/awspec/generator/doc/type/rds_db_cluster_parameter_group.rb,
lib/awspec/generator/doc/type/directconnect_virtual_interface.rb,
lib/awspec/generator/doc/type/elasticache_cache_parameter_group.rb
Defined Under Namespace
Classes: Ami, AutoscalingGroup, Base, CloudfrontDistribution, Cloudtrail, CloudwatchAlarm, CloudwatchEvent, CustomerGateway, DirectconnectVirtualInterface, Ebs, Ec2, EcrRepository, EcsCluster, EcsContainerInstance, EcsService, EcsTaskDefinition, Elasticache, ElasticacheCacheParameterGroup, Elasticsearch, ElastictranscoderPipeline, Elb, IamGroup, IamPolicy, IamRole, IamUser, Kms, Lambda, LaunchConfiguration, NatGateway, NetworkAcl, NetworkInterface, Rds, RdsDbClusterParameterGroup, RdsDbParameterGroup, Route53HostedZone, RouteTable, S3Bucket, SecurityGroup, SesIdentity, Subnet, Vpc, VpnConnection, VpnGateway, WafWebAcl
Class Method Summary collapse
Class Method Details
.generate_doc ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/awspec/generator/doc/type.rb', line 4 def self.generate_doc Aws.config[:stub_responses] = true types = Awspec::Helper::Type::TYPES types.delete('base') links = types.map do |type| '[' + type + '](#' + type + ')' end header = <<-'EOF' # Resource Types <%= links.join("\n| ") %> EOF doc = ERB.new(header, nil, '-').result(binding) types.map do |type| doc += eval "Awspec::Generator::Doc::Type::#{type.camelize}.new.generate_doc" end doc.sub(/\n*\z/, '') end |