kontena-plugin-upcloud 0.2.2 → 0.2.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e47dc978aaba2e0fa7b92c722e42c877bfea8dd
|
4
|
+
data.tar.gz: ca0d47f5807a4b43cf73d060928db67dee651ef4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fae8d0e61d3b92cdc9127bdb0c5e072bed6919cbe648fd62efb3070c6b2ccce9d033b23202d425ecedb19c49be62b0a5962eaef526add7b3cd890fc1d5f717d4
|
7
|
+
data.tar.gz: e8978798fcb8ead2e3a48f20a8248eba3f0a7d3acc09bf52fe572745cf35fb532b380df86dee85fdcba291f7cac77f6b390018b6952fa6241aea56c4e4e9cc7a
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_runtime_dependency 'kontena-cli', '>=
|
20
|
+
spec.add_runtime_dependency 'kontena-cli', '>= 1.0'
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.11"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
end
|
@@ -7,10 +7,13 @@ module Kontena::Plugin::Upcloud::Nodes
|
|
7
7
|
option "--username", "USER", "Upcloud username", required: true
|
8
8
|
option "--password", "PASS", "Upcloud password", required: true
|
9
9
|
|
10
|
+
option '--force', :flag, "Force terminate", attribute_name: :forced
|
11
|
+
|
10
12
|
requires_current_master_token
|
11
13
|
|
12
14
|
def execute
|
13
15
|
require_relative '../../../machine/upcloud'
|
16
|
+
confirm_command(name) unless forced?
|
14
17
|
grid = client.get("grids/#{current_grid}")
|
15
18
|
destroyer = Kontena::Machine::Upcloud::NodeDestroyer.new(client, username, password)
|
16
19
|
destroyer.run!(grid, name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontena-plugin-upcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kontena-cli
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|