kakine 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kakine/adapter/real.rb +6 -6
- data/lib/kakine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f72ed48bdd97e7c3c12e890df10e163c9e5b2246
|
4
|
+
data.tar.gz: 1018e3e84ef77b4a9cea77d1e4fb52dea9ac58f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a96451f1ab90c5a76ea3af765454d0f0c4924566251f034e375d44c3c694868b318a750297b6446c9e994f63f7eaf46f1ad366ace177aa415f00e6a2643375ac
|
7
|
+
data.tar.gz: 87e6507a5f2d3ffe030cce3fc606c2196cd8836ae5a05967767bcd7506d4b2c862963f01acdb1060c4943acdeee7c30b2d94c411272d68f10b39cc7d92a2a8c7
|
data/lib/kakine/adapter/real.rb
CHANGED
@@ -6,8 +6,8 @@ module Kakine
|
|
6
6
|
begin
|
7
7
|
security_rule = symbolized_rule(security_rule)
|
8
8
|
Yao::SecurityGroupRule.create(security_rule.merge({'security_group_id' => security_group_id, 'direction' => direction}))
|
9
|
-
rescue
|
10
|
-
error_message(e.
|
9
|
+
rescue Yao::Conflict, Yao::BadRequest => e
|
10
|
+
error_message(e.message)
|
11
11
|
rescue Kakine::SecurityRuleError => e
|
12
12
|
puts e
|
13
13
|
end
|
@@ -21,16 +21,16 @@ module Kakine
|
|
21
21
|
begin
|
22
22
|
security_group = Yao::SecurityGroup.create(symbolized_group(attributes))
|
23
23
|
{"id" => security_group.id}
|
24
|
-
rescue
|
25
|
-
error_message(e.
|
24
|
+
rescue Yao::Conflict, Yao::BadRequest => e
|
25
|
+
error_message(e.message)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
29
|
def delete_security_group(security_group_id)
|
30
30
|
begin
|
31
31
|
Yao::SecurityGroup.destroy(security_group_id)
|
32
|
-
rescue
|
33
|
-
error_message(e.
|
32
|
+
rescue Yao::Conflict, Yao::BadRequest => e
|
33
|
+
error_message(e.message)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
data/lib/kakine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kakine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SHIBATA Hiroshi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yao
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.5.1
|
151
|
+
rubygems_version: 2.4.5.1
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Security Group configuration tool for OpenStack.
|