oc 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/oc/version.rb +1 -1
- data/lib/system/run/commands/droplets.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45bf4a3cafa6f5c9ae309cc8cc8c9b1a829e41a6
|
4
|
+
data.tar.gz: 12cf0dd90bad47e3fc4c98080dde66671a1f1d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63587b4884e58e78ac41e515fa76adbf5c62e71fcf5122db5024f2d6057d0c00d921d21eb5ac4cd4f4cdc7de16db4a2dbe53284238b558c9624df4dfa7d99d87
|
7
|
+
data.tar.gz: 8ec7a04cba4c5463c6431c4e6e46b4c51e01cdd195125dcd6ad6d70760d1beed457f02f96b63879ad2fbca845128a73db2116a4a662f5aa12ac496dee311a743
|
data/README.md
CHANGED
data/lib/oc/version.rb
CHANGED
@@ -51,10 +51,8 @@ module Oc::Run
|
|
51
51
|
puts "Usage".yellow
|
52
52
|
puts "$ oc droplets new [DROPLET_NAME] [SIZE_ID] [IMAGE_ID] [REGION_ID]".yellow
|
53
53
|
else
|
54
|
-
raise ArgumentError, "Argument Error - #{size}" unless size =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
55
|
-
raise ArgumentError, "Argument Error - #{image_id}" unless image_id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
56
54
|
|
57
|
-
result = barge.droplet.create({:name => name, :region => region_id, :size =>
|
55
|
+
result = barge.droplet.create({:name => name, :region => region_id, :size => size, :image => image_id})
|
58
56
|
if !result.success?
|
59
57
|
puts "#{result.message}".red
|
60
58
|
else
|