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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab608f52dd1ca60d7c92f33c9f7b9631a6242075
4
- data.tar.gz: d6a58efb30e3b4658f468d6a64ae45cf45c36390
3
+ metadata.gz: 2b78df0f6ccf21eb679be4d198c3b5c623555628
4
+ data.tar.gz: 808c449ddfc01e12591724c77abb7b3445c9e73d
5
5
  SHA512:
6
- metadata.gz: e6c6d3902e746c8e29bff09b84fa474e03256b14c1d604f2507f330dfdf2a16dcd32b18eb14b50891f921f154d259fe44a86be7f2db3dd650b0d61a7031a3786
7
- data.tar.gz: 7973597d58f071fc976a9d1cd6af702c8e85dfe2b45b48ac8d2b63c1ba2aff38b74c65245a35329cfcd7fa9ed2d89bd121e423d62a789d5ef2f7978e710fcd67
6
+ metadata.gz: c88a4c3035e02132816ff1d268eb92d437193f65211002042897a037eaa68618898c1c143c8eb0b9d5310dedd964cb04cefe9f0ab21b2ca14db2951b7798b528
7
+ data.tar.gz: d7b878cba6424cc5998e73fb2422e1159294cd89440a8d3772716ac02ad2c335b6869227993df51c8925664de38f3f50fb735105d2a199ce5efbdaf83009ba69
@@ -4,12 +4,12 @@ require 'awspec/command/generate'
4
4
 
5
5
  module Awspec
6
6
  class CLI < Thor
7
- desc 'awspec init', 'Generate init files'
7
+ desc 'init', 'Generate init files'
8
8
  def init
9
9
  Awspec::Setup.run
10
10
  end
11
11
 
12
- desc 'awspec generate [vpc_id]', 'Generate *_spec.rb from VPC ID (or VPC "Name" tag)'
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(:outbound_permissions_count) { should eq <%= sg.ip_permissions.count %> }
66
- its(:inbound_permissions_count) { should eq <%= sg.ip_permissions_egress.count %> }
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 -%>
@@ -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(
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW