magellan-cli 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/magellan/cli/resources/worker.rb +5 -0
- data/lib/magellan/cli/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: 92fde20bdb8118082c2de57572bb31877c7fe49a
|
4
|
+
data.tar.gz: cf04ba85a6c13524f04554d8397c16c75ef8b24c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4b29fced516b42e70f2227488ac5b3ed4f485a26033f890d3ba369ced5889ad6bc0ae83eeb34bb716aa9ab20493a499de9516f88d5eb5a1ed9b8ccc9b457599
|
7
|
+
data.tar.gz: a70c57c0eb051e95fa0584d64351ab32f4ae70db1d27f60b2c749813705797ceb0edac76d652c019c142f9c89b2d062d8a9b05e0d3c0d38e157141fb0f3e2f66
|
data/Gemfile.lock
CHANGED
@@ -57,6 +57,11 @@ module Magellan
|
|
57
57
|
s = load_selection!(Worker)
|
58
58
|
id = s["id"]
|
59
59
|
r = post_json("/admin/functions~worker/#{id}/simple_method_call.json", {method_name: "prepare_images"})
|
60
|
+
targets = r["result"].select{|i| i["instance_amount"] > 0 }
|
61
|
+
if targets.length == 1
|
62
|
+
img = r["result"].first
|
63
|
+
Image.new.select(img["name"])
|
64
|
+
end
|
60
65
|
Image.new.show_list(r["result"])
|
61
66
|
end
|
62
67
|
|
data/lib/magellan/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magellan-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm2000
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|