kontena-plugin-cloud 1.2.0.pre2 → 1.2.0.pre3

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
  SHA256:
3
- metadata.gz: e982c9ea1499f2618665e250c4f5c6e2b11511f96c14afc77ef0f288f4e2eaf5
4
- data.tar.gz: 009906cfbb8b95082e41823fb62feaa5ed10105237a096fa9805be0628933319
3
+ metadata.gz: 9a0321e44435bc55fe3feb110f4e3d473763f5b96b9c79563bbd0036f85ffa2c
4
+ data.tar.gz: 4b0c16f46bfcff2ead931dbfe7ad97a07fa491ce926fc398fe8c595e0c98c0ea
5
5
  SHA512:
6
- metadata.gz: 93af9ac05619ca85c45af77e68eead3d048081e7e3d00b593c2bde695ca219a38fb651586bad1572d3f78b4e7e3111df07582262e99b04d51215a67199de3a8f
7
- data.tar.gz: 03e5054dda9fc13beda51de24be52ca125e7b329d8a6fe1d3547441b4c8c433182c6894fd479e269e1aaf7b89944b816930c505aa7bb728fa9e608c8c026a3a0
6
+ metadata.gz: 608f083d9c1a2ef98ce84031c0e5ca684080d2d41ca25acc38fe5c7dbc0e76f446a2ec6f0f350aa88b4c0386550526f9f7130d0177e14df79a2cbc3b346e0b3f
7
+ data.tar.gz: 8f70c145db6aa4e9003b644a786eabd2b17249680d3fedb9d83fd9df0f29a57d19aed4f55dc963e65330b506d06938957961a85986033d32ad5619537118c9c9
@@ -21,7 +21,7 @@ class Kontena::Plugin::Cloud::Node::CreateCommand < Kontena::Command
21
21
  option "--ssh-key", "SSH_KEY", "Path to ssh public key"
22
22
 
23
23
  def execute
24
- org, platform = parse_platform_name(current_master.name)
24
+ org, platform = parse_platform_name(current_platform)
25
25
  platform = require_platform("#{org}/#{platform}")
26
26
  grid = client.get("grids/#{current_grid}")
27
27
  self.count.times do
@@ -78,6 +78,10 @@ class Kontena::Plugin::Cloud::Node::CreateCommand < Kontena::Command
78
78
  prompt.ask("How many nodes?", default: 1).to_i
79
79
  end
80
80
 
81
+ def current_platform
82
+ ENV['KONTENA_PLATFORM'] || current_master.name
83
+ end
84
+
81
85
  def default_type
82
86
  node_types = compute_client.get("/node_types")['data']
83
87
  prompt.select("Choose node type:") do |menu|
@@ -1,7 +1,7 @@
1
1
  module Kontena
2
2
  module Plugin
3
3
  module Cloud
4
- VERSION = "1.2.0.pre2"
4
+ VERSION = "1.2.0.pre3"
5
5
 
6
6
  module Organization
7
7
  module User; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-plugin-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.pre2
4
+ version: 1.2.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc.