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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64e910eff60c172a577262ba69812c7481edbdc6
4
- data.tar.gz: fd822d76a2c83851458bd082ea75f782ee265d01
3
+ metadata.gz: 92fde20bdb8118082c2de57572bb31877c7fe49a
4
+ data.tar.gz: cf04ba85a6c13524f04554d8397c16c75ef8b24c
5
5
  SHA512:
6
- metadata.gz: 0ce72cedf4fc3d2a0cf6a726e28d3e31a4eee1050716b99d84cfe366a8f92a538875d0a90243743be5da79f7bb3320e100af25538e0bdb157184d769e63438f7
7
- data.tar.gz: 6d14e206e510653904718dd5fb6adba8200a138caa9814f5d513a997f8f025a6a4ea3e365b403f556d89f83dc7e8069e834000525d64fd1942edf64139aa6d31
6
+ metadata.gz: b4b29fced516b42e70f2227488ac5b3ed4f485a26033f890d3ba369ced5889ad6bc0ae83eeb34bb716aa9ab20493a499de9516f88d5eb5a1ed9b8ccc9b457599
7
+ data.tar.gz: a70c57c0eb051e95fa0584d64351ab32f4ae70db1d27f60b2c749813705797ceb0edac76d652c019c142f9c89b2d062d8a9b05e0d3c0d38e157141fb0f3e2f66
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magellan-cli (0.4.3)
4
+ magellan-cli (0.4.4)
5
5
  activesupport (~> 4.1.4)
6
6
  groovenauts-thor
7
7
  httpclient (~> 2.5)
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Cli
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
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.3
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-26 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient