vmfloaty 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vmfloaty.rb +4 -0
- data/lib/vmfloaty/pooler.rb +5 -0
- data/lib/vmfloaty/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/vmfloaty/pooler_spec.rb +10 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c54d93e6680a539d4eb2b3b9ff25c664b5d9f4f
|
4
|
+
data.tar.gz: 03eb1dc1ad20c59f57fc6479f140510752a6bd07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbdf78e59753019035e7bec56ec5fc8d254e06edf9ed46e616b0bf2529b2cd520406a77f6b311cf65f5b37043442ab23f34998e79334ba18dff634e95b9c8ed5
|
7
|
+
data.tar.gz: 0e9fdea1096ed68c5286beb69f2113b58104ba716e6b0d4aab2d0af7ec5c855e4873ce73e8415c9f103ebc5e01a8aaccd4d349733b98285698b128043358aa72
|
data/lib/vmfloaty.rb
CHANGED
data/lib/vmfloaty/pooler.rb
CHANGED
@@ -33,6 +33,11 @@ class Pooler
|
|
33
33
|
|
34
34
|
os_string = os_string.chomp("+")
|
35
35
|
|
36
|
+
if os_string.size == 0
|
37
|
+
STDERR.puts "No request was made, os hash specified no vms #{os_type}"
|
38
|
+
exit 1
|
39
|
+
end
|
40
|
+
|
36
41
|
response = conn.post "/vm/#{os_string}"
|
37
42
|
|
38
43
|
res_body = JSON.parse(response.body)
|
data/lib/vmfloaty/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmfloaty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/vmfloaty/pooler.rb
|
58
58
|
- lib/vmfloaty/version.rb
|
59
59
|
- spec/spec_helper.rb
|
60
|
+
- spec/vmfloaty/pooler_spec.rb
|
60
61
|
homepage: https://github.com/briancain/vmfloaty
|
61
62
|
licenses:
|
62
63
|
- Apache
|
@@ -83,3 +84,4 @@ specification_version: 4
|
|
83
84
|
summary: CLI application to interface with vmpooler
|
84
85
|
test_files:
|
85
86
|
- spec/spec_helper.rb
|
87
|
+
- spec/vmfloaty/pooler_spec.rb
|