awspec 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/lib/awspec/type/security_group.rb +10 -0
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df207790f4376bc443bf955cd3431d61a5944f0e
|
4
|
+
data.tar.gz: 2318f61037e3b4b1133f79ffcb75840ce61595fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2efb966dd21639c1dc2fb8d1e909430e5b1250fcc626897eea88031fba0cbe9423d646ae64b144caec88da1d5183eb22ae70cb8eefc6d8c7f3d8ca37cab9f28d
|
7
|
+
data.tar.gz: 4864b9b8d31aa4d4224b8b8ae4510e3650ff238c5ac0411a03443135b6d313b095d084e8358727d621b5261a86dae0c09050478d3b22e8cde90cc9de3c1161c3
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# awspec [](https://rubygems.org/gems/awspec) [](https://travis-ci.org/k1LoW/awspec)
|
2
2
|
|
3
|
-
RSpec tests for your AWS resources.
|
3
|
+
RSpec tests for your AWS resources inspired by Serverspec.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -27,7 +27,7 @@ Or install it yourself as:
|
|
27
27
|
### 2. Write *_spec.rb
|
28
28
|
|
29
29
|
```ruby
|
30
|
-
describe ec2('
|
30
|
+
describe ec2('my-ec2-tag-name') do
|
31
31
|
it { should be_running }
|
32
32
|
its(:instance_id) { should eq 'i-ec12345a' }
|
33
33
|
its(:image_id) { should eq 'ami-abc12def' }
|
@@ -55,6 +55,11 @@ end
|
|
55
55
|
- [ ] AutoScaling
|
56
56
|
- ...
|
57
57
|
|
58
|
+
## TODO
|
59
|
+
|
60
|
+
- [ ] Comment format for Document generation
|
61
|
+
- [ ] Spec generator
|
62
|
+
|
58
63
|
## Contributing
|
59
64
|
|
60
65
|
1. Fork it ( https://github.com/k1LoW/awspec/fork )
|
@@ -84,5 +84,15 @@ module Awspec::Type
|
|
84
84
|
@inbound = false
|
85
85
|
self
|
86
86
|
end
|
87
|
+
|
88
|
+
def ip_permissions_count
|
89
|
+
@sg[:ip_permissions].count
|
90
|
+
end
|
91
|
+
alias_method :inbound_permissions_count, :ip_permissions_count
|
92
|
+
|
93
|
+
def ip_permissions_egress_count
|
94
|
+
@sg[:ip_permissions_egress].count
|
95
|
+
end
|
96
|
+
alias_method :outbound_permissions_count, :ip_permissions_egress_count
|
87
97
|
end
|
88
98
|
end
|
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|