cyoi 0.11.2 → 0.11.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb3d60d830913bbdb266c48077fbc2f344a126f
|
4
|
+
data.tar.gz: 7d9929b81ea1303b2e7f46afa1da11e25f7a41cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bc7825c7205cf1c36d385be9f2718a4f3199f8bcd0e6e6bc810ce59888a6aab6f8ffef259b928ba44ce540b838938679d6d1747343e72249a1e2b41d7c15295
|
7
|
+
data.tar.gz: fd834eedd839503d396f68dc1be9ecb8118dfd6b8e579cc4c09689f60f6807ecf9b147ceabbc556a245402dfa98fc58ce18d1068c5e8f230a7020018ad363b65
|
data/ChangeLog.md
CHANGED
@@ -3,7 +3,13 @@ Change Log
|
|
3
3
|
|
4
4
|
Cyoi (choose-your-own-infrastructure) is a library to ask an end-user to choose an infrastructure (AWS, OpenStack, etc), region, and login credentials.
|
5
5
|
|
6
|
+
v0.11.3
|
7
|
+
-------
|
8
|
+
|
9
|
+
- AWS - Fixed bug that turned a list of ports into a range
|
10
|
+
|
6
11
|
v0.11
|
12
|
+
-----
|
7
13
|
|
8
14
|
- AWS VPC support - choose a VPC, choose a subnet, an IP is selected.
|
9
15
|
- AWS - Trusty AMIs if looking for an AMI [v0.11.1]
|
@@ -147,6 +147,11 @@ class Cyoi::Providers::Clients::FogProviderClient
|
|
147
147
|
defns = defns[:ports]
|
148
148
|
end
|
149
149
|
|
150
|
+
# If we are passed an array of ports, preserve that
|
151
|
+
if defns.is_a?(Hash) && defns[:ports].is_a?(Array)
|
152
|
+
defns = defns[:ports]
|
153
|
+
end
|
154
|
+
|
150
155
|
unless defns.is_a?(Array)
|
151
156
|
defns = [defns]
|
152
157
|
end
|
data/lib/cyoi/version.rb
CHANGED
@@ -111,7 +111,7 @@ describe Cyoi::Providers::Clients::AwsProviderClient do
|
|
111
111
|
expect(subject).to receive(:puts).with(" -> opened foo ports TCP 443..443 from IP range 0.0.0.0/0")
|
112
112
|
expect(subject).to receive(:puts).with(" -> opened foo ports TCP 4443..4443 from IP range 0.0.0.0/0")
|
113
113
|
|
114
|
-
subject.create_security_group("foo", "foo", [22, 443, 4443])
|
114
|
+
subject.create_security_group("foo", "foo", {ports: [22, 443, 4443]})
|
115
115
|
end
|
116
116
|
end
|
117
|
-
end
|
117
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyoi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dr Nic Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|