piculet 0.2.8.beta3 → 0.2.8.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/piculet/client.rb +7 -7
- data/lib/piculet/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: 5c6382fdec7d92923f9c9e2f56972ca6b82739cd
|
4
|
+
data.tar.gz: 9b8582487993b4a796a07565058529db248ffed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533df535ffbcaf7c0f456991f2e3016d03dbe2a7fa1f4275bef133b101e90c4d7af52d2c1f6cdb2ab528388f604ffe69978a73c8ced0b6eeafcd6c96386b6c4e
|
7
|
+
data.tar.gz: 1f3a0c281a3719b960199bc31003e32d18a547bf88b15089f1ee1574700fb2167137d47f1d3b0298ff7e897cdf3f812b267d0760a79d66861f5109eb9beeef1d
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Piculet is a tool to manage EC2 Security Group.
|
|
4
4
|
|
5
5
|
It defines the state of EC2 Security Group using DSL, and updates EC2 Security Group according to DSL.
|
6
6
|
|
7
|
-
[![Gem Version](https://badge.fury.io/rb/piculet.
|
7
|
+
[![Gem Version](https://badge.fury.io/rb/piculet.svg)](http://badge.fury.io/rb/piculet)
|
8
8
|
[![Build Status](https://travis-ci.org/winebarrel/piculet.svg?branch=master)](https://travis-ci.org/winebarrel/piculet)
|
9
9
|
|
10
10
|
## Installation
|
data/lib/piculet/client.rb
CHANGED
@@ -184,21 +184,21 @@ module Piculet
|
|
184
184
|
perm_list_dsl = collect_to_hash(permissions_dsl, :protocol, :port_range)
|
185
185
|
perm_list_aws = collect_to_hash(permissions_aws, :protocol, :port_range)
|
186
186
|
|
187
|
-
|
188
|
-
|
189
|
-
perm_aws = perm_list_aws.delete(key)
|
187
|
+
perm_list_aws.each do |key, perm_aws|
|
188
|
+
perm_dsl = perm_list_dsl.delete(key)
|
190
189
|
|
191
|
-
if
|
190
|
+
if perm_dsl
|
192
191
|
unless perm_aws.eql?(perm_dsl)
|
193
192
|
perm_aws.update(perm_dsl)
|
194
193
|
end
|
195
194
|
else
|
196
|
-
|
195
|
+
perm_aws.delete
|
197
196
|
end
|
198
197
|
end
|
199
198
|
|
200
|
-
|
201
|
-
|
199
|
+
perm_list_dsl.each do |key, perm_dsl|
|
200
|
+
protocol, port_range = key
|
201
|
+
permissions_aws.create(protocol, port_range, perm_dsl)
|
202
202
|
end
|
203
203
|
end
|
204
204
|
|
data/lib/piculet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piculet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.8.
|
4
|
+
version: 0.2.8.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-v1
|