awspec 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -0
  3. data/doc/_resource_types/rds_db_parameter_group.md +8 -0
  4. data/doc/resource_types.md +32 -25
  5. data/lib/awspec.rb +2 -0
  6. data/lib/awspec/bin/toolbox +5 -0
  7. data/lib/awspec/generator.rb +5 -1
  8. data/lib/awspec/generator/doc/type.rb +26 -0
  9. data/lib/awspec/generator/doc/type/auto_scaling_group.rb +16 -0
  10. data/lib/awspec/generator/doc/type/base.rb +89 -0
  11. data/lib/awspec/generator/doc/type/ebs.rb +17 -0
  12. data/lib/awspec/generator/doc/type/ec2.rb +17 -0
  13. data/lib/awspec/generator/doc/type/elb.rb +20 -0
  14. data/lib/awspec/generator/doc/type/rds.rb +17 -0
  15. data/lib/awspec/generator/doc/type/rds_db_parameter_group.rb +16 -0
  16. data/lib/awspec/generator/doc/type/route53_hosted_zone.rb +16 -0
  17. data/lib/awspec/generator/doc/type/route_table.rb +16 -0
  18. data/lib/awspec/generator/doc/type/s3.rb +16 -0
  19. data/lib/awspec/generator/doc/type/security_group.rb +16 -0
  20. data/lib/awspec/generator/doc/type/subnet.rb +16 -0
  21. data/lib/awspec/generator/doc/type/vpc.rb +17 -0
  22. data/lib/awspec/generator/template.rb +100 -0
  23. data/lib/awspec/stub.rb +7 -0
  24. data/lib/awspec/stub/auto_scaling_group.rb +87 -0
  25. data/lib/awspec/stub/ebs.rb +66 -0
  26. data/lib/awspec/stub/ec2.rb +117 -0
  27. data/lib/awspec/stub/elb.rb +129 -0
  28. data/lib/awspec/stub/rds.rb +93 -0
  29. data/lib/awspec/stub/rds_db_parameter_group.rb +16 -0
  30. data/lib/awspec/stub/route53_hosted_zone.rb +83 -0
  31. data/lib/awspec/stub/route_table.rb +60 -0
  32. data/lib/awspec/stub/s3.rb +14 -0
  33. data/lib/awspec/stub/security_group.rb +66 -0
  34. data/lib/awspec/stub/subnet.rb +33 -0
  35. data/lib/awspec/stub/vpc.rb +69 -0
  36. data/lib/awspec/toolbox.rb +13 -0
  37. data/lib/awspec/version.rb +1 -1
  38. metadata +33 -16
  39. data/lib/awspec/docgen.rb +0 -23
  40. data/lib/awspec/generator/doc/auto_scaling_group.rb +0 -15
  41. data/lib/awspec/generator/doc/base.rb +0 -74
  42. data/lib/awspec/generator/doc/ebs.rb +0 -15
  43. data/lib/awspec/generator/doc/ec2.rb +0 -15
  44. data/lib/awspec/generator/doc/elb.rb +0 -18
  45. data/lib/awspec/generator/doc/rds.rb +0 -15
  46. data/lib/awspec/generator/doc/rds_db_parameter_group.rb +0 -15
  47. data/lib/awspec/generator/doc/route53_hosted_zone.rb +0 -15
  48. data/lib/awspec/generator/doc/route_table.rb +0 -15
  49. data/lib/awspec/generator/doc/s3.rb +0 -15
  50. data/lib/awspec/generator/doc/security_group.rb +0 -15
  51. data/lib/awspec/generator/doc/subnet.rb +0 -15
  52. 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