awspec 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/doc/_resource_types/rds_db_parameter_group.md +8 -0
- data/doc/resource_types.md +32 -25
- data/lib/awspec.rb +2 -0
- data/lib/awspec/bin/toolbox +5 -0
- data/lib/awspec/generator.rb +5 -1
- data/lib/awspec/generator/doc/type.rb +26 -0
- data/lib/awspec/generator/doc/type/auto_scaling_group.rb +16 -0
- data/lib/awspec/generator/doc/type/base.rb +89 -0
- data/lib/awspec/generator/doc/type/ebs.rb +17 -0
- data/lib/awspec/generator/doc/type/ec2.rb +17 -0
- data/lib/awspec/generator/doc/type/elb.rb +20 -0
- data/lib/awspec/generator/doc/type/rds.rb +17 -0
- data/lib/awspec/generator/doc/type/rds_db_parameter_group.rb +16 -0
- data/lib/awspec/generator/doc/type/route53_hosted_zone.rb +16 -0
- data/lib/awspec/generator/doc/type/route_table.rb +16 -0
- data/lib/awspec/generator/doc/type/s3.rb +16 -0
- data/lib/awspec/generator/doc/type/security_group.rb +16 -0
- data/lib/awspec/generator/doc/type/subnet.rb +16 -0
- data/lib/awspec/generator/doc/type/vpc.rb +17 -0
- data/lib/awspec/generator/template.rb +100 -0
- data/lib/awspec/stub.rb +7 -0
- data/lib/awspec/stub/auto_scaling_group.rb +87 -0
- data/lib/awspec/stub/ebs.rb +66 -0
- data/lib/awspec/stub/ec2.rb +117 -0
- data/lib/awspec/stub/elb.rb +129 -0
- data/lib/awspec/stub/rds.rb +93 -0
- data/lib/awspec/stub/rds_db_parameter_group.rb +16 -0
- data/lib/awspec/stub/route53_hosted_zone.rb +83 -0
- data/lib/awspec/stub/route_table.rb +60 -0
- data/lib/awspec/stub/s3.rb +14 -0
- data/lib/awspec/stub/security_group.rb +66 -0
- data/lib/awspec/stub/subnet.rb +33 -0
- data/lib/awspec/stub/vpc.rb +69 -0
- data/lib/awspec/toolbox.rb +13 -0
- data/lib/awspec/version.rb +1 -1
- metadata +33 -16
- data/lib/awspec/docgen.rb +0 -23
- data/lib/awspec/generator/doc/auto_scaling_group.rb +0 -15
- data/lib/awspec/generator/doc/base.rb +0 -74
- data/lib/awspec/generator/doc/ebs.rb +0 -15
- data/lib/awspec/generator/doc/ec2.rb +0 -15
- data/lib/awspec/generator/doc/elb.rb +0 -18
- data/lib/awspec/generator/doc/rds.rb +0 -15
- data/lib/awspec/generator/doc/rds_db_parameter_group.rb +0 -15
- data/lib/awspec/generator/doc/route53_hosted_zone.rb +0 -15
- data/lib/awspec/generator/doc/route_table.rb +0 -15
- data/lib/awspec/generator/doc/s3.rb +0 -15
- data/lib/awspec/generator/doc/security_group.rb +0 -15
- data/lib/awspec/generator/doc/subnet.rb +0 -15
- data/lib/awspec/generator/doc/vpc.rb +0 -15
@@ -1,15 +0,0 @@
|
|
1
|
-
module Awspec::Generator
|
2
|
-
module Doc
|
3
|
-
class S3 < Base
|
4
|
-
def initialize
|
5
|
-
@type_name = 'S3'
|
6
|
-
require File.dirname(__FILE__) + '/../../../../spec/stub/' + @type_name.to_snake_case
|
7
|
-
@type = Awspec::Type::S3.new('my-bucket')
|
8
|
-
@ret = @type.bucket
|
9
|
-
@matchers = []
|
10
|
-
@ignore_matchers = []
|
11
|
-
@describes = []
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Awspec::Generator
|
2
|
-
module Doc
|
3
|
-
class SecurityGroup < Base
|
4
|
-
def initialize
|
5
|
-
@type_name = 'SecurityGroup'
|
6
|
-
require File.dirname(__FILE__) + '/../../../../spec/stub/' + @type_name.to_snake_case
|
7
|
-
@type = Awspec::Type::SecurityGroup.new('my-security-group-name')
|
8
|
-
@ret = @type.sg
|
9
|
-
@matchers = ['its(:inbound), its(:outbound)']
|
10
|
-
@ignore_matchers = %w(be_opened be_inbound_opened be_outbound_opened)
|
11
|
-
@describes = %w(ip_permissions_count ip_permissions_egress_count)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Awspec::Generator
|
2
|
-
module Doc
|
3
|
-
class Subnet < Base
|
4
|
-
def initialize
|
5
|
-
@type_name = 'Subnet'
|
6
|
-
require File.dirname(__FILE__) + '/../../../../spec/stub/' + @type_name.to_snake_case
|
7
|
-
@type = Awspec::Type::Subnet.new('my-route-table')
|
8
|
-
@ret = @type.subnet
|
9
|
-
@matchers = []
|
10
|
-
@ignore_matchers = []
|
11
|
-
@describes = []
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Awspec::Generator
|
2
|
-
module Doc
|
3
|
-
class Vpc < Base
|
4
|
-
def initialize
|
5
|
-
@type_name = 'VPC'
|
6
|
-
require File.dirname(__FILE__) + '/../../../../spec/stub/' + @type_name.to_snake_case
|
7
|
-
@type = Awspec::Type::Vpc.new('my-vpc')
|
8
|
-
@ret = @type.vpc
|
9
|
-
@matchers = []
|
10
|
-
@ignore_matchers = []
|
11
|
-
@describes = []
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|