awspec 0.17.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awspec/cli.rb +9 -0
- data/lib/awspec/generator/spec/security_group.rb +1 -1
- 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: 6db22930c102c95bc37c65c8324aa7554e74aa5b
|
4
|
+
data.tar.gz: 34a00b15b832de7d042b68e1564c96750f4a6fc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fbcef8b5ccf42f73b20b667f535419f7a6c02352378e19486e5f23daa3861612de8a9f8c25d6f280d03cd08f2602784a3f2f1d6b27fa444451dad2af85895f8
|
7
|
+
data.tar.gz: 0de1236f9099647af9840c4313989b885b464bb052163d2e1d6b559a3db1ff1dd9e2f10b6b15e0a1919c917cdbb3130d022fef1cb51891130cabf94cf47a02e8
|
data/lib/awspec/cli.rb
CHANGED
@@ -12,5 +12,14 @@ module Awspec
|
|
12
12
|
desc 'generate [resource]', 'Generate AWS resource *_spec.rb'
|
13
13
|
subcommand 'generate', Generate
|
14
14
|
map 'g' => 'generate'
|
15
|
+
|
16
|
+
option :version, type: :boolean, aliases: :v
|
17
|
+
def help(version = nil)
|
18
|
+
if version
|
19
|
+
puts Awspec::VERSION
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
end
|
15
24
|
end
|
16
25
|
end
|
@@ -59,7 +59,7 @@ EOF
|
|
59
59
|
|
60
60
|
def security_group_spec_template
|
61
61
|
template = <<-'EOF'
|
62
|
-
describe security_group('<%= sg.
|
62
|
+
describe security_group('<%= sg.group_name %>') do
|
63
63
|
it { should exist }
|
64
64
|
<% describes.each do |describe| %>
|
65
65
|
<%- if sg.key?(describe) -%>
|
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.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|