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 +4 -4
- data/lib/kontena/plugin/cloud/node/create_command.rb +5 -1
- data/lib/kontena/plugin/cloud.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0321e44435bc55fe3feb110f4e3d473763f5b96b9c79563bbd0036f85ffa2c
|
4
|
+
data.tar.gz: 4b0c16f46bfcff2ead931dbfe7ad97a07fa491ce926fc398fe8c595e0c98c0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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|
|
data/lib/kontena/plugin/cloud.rb
CHANGED