awspec 0.2.1 → 0.2.2
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 +2 -2
- data/lib/awspec/generator/spec/security_group.rb +2 -2
- data/lib/awspec/setup.rb +2 -2
- data/lib/awspec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b78df0f6ccf21eb679be4d198c3b5c623555628
|
4
|
+
data.tar.gz: 808c449ddfc01e12591724c77abb7b3445c9e73d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c88a4c3035e02132816ff1d268eb92d437193f65211002042897a037eaa68618898c1c143c8eb0b9d5310dedd964cb04cefe9f0ab21b2ca14db2951b7798b528
|
7
|
+
data.tar.gz: d7b878cba6424cc5998e73fb2422e1159294cd89440a8d3772716ac02ad2c335b6869227993df51c8925664de38f3f50fb735105d2a199ce5efbdaf83009ba69
|
data/lib/awspec/cli.rb
CHANGED
@@ -4,12 +4,12 @@ require 'awspec/command/generate'
|
|
4
4
|
|
5
5
|
module Awspec
|
6
6
|
class CLI < Thor
|
7
|
-
desc '
|
7
|
+
desc 'init', 'Generate init files'
|
8
8
|
def init
|
9
9
|
Awspec::Setup.run
|
10
10
|
end
|
11
11
|
|
12
|
-
desc '
|
12
|
+
desc 'generate [resource] [vpc_id]', 'Generate *_spec.rb from VPC ID'
|
13
13
|
subcommand 'generate', Generate
|
14
14
|
map 'g' => 'generate'
|
15
15
|
end
|
@@ -62,8 +62,8 @@ describe security_group('<%= sg.group_name %>') do
|
|
62
62
|
<% linespecs.each do |line| %>
|
63
63
|
<%= line %>
|
64
64
|
<% end %>
|
65
|
-
its(:
|
66
|
-
its(:
|
65
|
+
its(:inbound_permissions_count) { should eq <%= sg.ip_permissions.count %> }
|
66
|
+
its(:outbound_permissions_count) { should eq <%= sg.ip_permissions_egress.count %> }
|
67
67
|
<%- if @vpc_tag_name -%>
|
68
68
|
it { should belong_to_vpc('<%= @vpc_tag_name %>') }
|
69
69
|
<%- else -%>
|
data/lib/awspec/setup.rb
CHANGED
@@ -12,8 +12,8 @@ module Awspec
|
|
12
12
|
def self.generate_spec_helper
|
13
13
|
content = <<-'EOF'
|
14
14
|
require 'awspec'
|
15
|
-
if File.exist?('secrets.yml')
|
16
|
-
creds = YAML.load_file('secrets.yml')
|
15
|
+
if File.exist?('spec/secrets.yml')
|
16
|
+
creds = YAML.load_file('spec/secrets.yml')
|
17
17
|
Aws.config.update({
|
18
18
|
region: creds['region'],
|
19
19
|
credentials: Aws::Credentials.new(
|
data/lib/awspec/version.rb
CHANGED