crowbar-client 3.1.8 → 3.1.9
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: 6c3b0945cc84a892928ce8a17d0036b1e0b43d51
|
4
|
+
data.tar.gz: 9ee92ad11d364e8b17bc157730af4d7f0763a6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e4ad8d942f1f288fc3edffd6853db5c7c43650415583a6f2faed09c8f8886d4376873304c71430667633167fb9ce89039a322a376d17836b8eb18684914bba
|
7
|
+
data.tar.gz: 5208d20b6adbb5cbcc5e8c569c389131051dc2a4c6904016a0c2994a650460309dc54340cb3c3cc925f25b8a4e1074b1f7f7e13efc0f86820626f105cafd1960
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.1.9](https://github.com/crowbar/crowbar-client/releases/tag/v3.1.9) - 2017-02-03
|
4
|
+
|
5
|
+
* ENHANCEMENT
|
6
|
+
* Enable querying the nodes upgrade status (@MaximilianMeister)
|
7
|
+
* BUGFIX
|
8
|
+
* Don't show just one Error (@MaximilianMeister)
|
9
|
+
|
3
10
|
## [3.1.8](https://github.com/crowbar/crowbar-client/releases/tag/v3.1.8) - 2017-02-02
|
4
11
|
|
5
12
|
* ENHANCEMENT
|
@@ -21,11 +21,14 @@ module Crowbar
|
|
21
21
|
# A Thor based CLI wrapper for upgrade commands
|
22
22
|
#
|
23
23
|
class Upgrade < Base
|
24
|
-
desc "status",
|
25
|
-
"Show the status of the upgrade"
|
24
|
+
desc "status [nodes]",
|
25
|
+
"Show the status of the upgrade or the nodes upgrade"
|
26
26
|
|
27
27
|
long_desc <<-LONGDESC
|
28
28
|
`status` will print out a status of the upgrade.
|
29
|
+
|
30
|
+
`status nodes` will print out a status of the nodes upgrade.
|
31
|
+
|
29
32
|
You can display the status in different output formats
|
30
33
|
and you can filter the list by any search criteria.
|
31
34
|
|
@@ -68,9 +71,11 @@ module Crowbar
|
|
68
71
|
banner: "<filter>",
|
69
72
|
desc: "Filter by criteria, display only data that contains filter"
|
70
73
|
|
71
|
-
def status
|
74
|
+
def status(nodes = false)
|
72
75
|
Command::Upgrade::Status.new(
|
73
|
-
*command_params
|
76
|
+
*command_params(
|
77
|
+
nodes: nodes
|
78
|
+
)
|
74
79
|
).execute
|
75
80
|
rescue => e
|
76
81
|
catch_errors(e)
|
@@ -66,26 +66,32 @@ module Crowbar
|
|
66
66
|
request.parsed_response["checks"].each do |check_id, values|
|
67
67
|
# make the check_id server agnostic
|
68
68
|
# the check_id could be named differently in the server response
|
69
|
-
|
69
|
+
check_ids = values["errors"].keys if values["errors"].any?
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
nil
|
79
|
-
end,
|
80
|
-
help: if values["errors"].key?(check_id)
|
81
|
-
values["errors"][check_id]["help"].inspect
|
82
|
-
else
|
83
|
-
nil
|
84
|
-
end
|
85
|
-
)
|
71
|
+
if check_ids
|
72
|
+
check_ids.each do |id|
|
73
|
+
row.push(parsed_checks(id, values))
|
74
|
+
end
|
75
|
+
else
|
76
|
+
row.push(parsed_checks(check_id, values))
|
77
|
+
end
|
86
78
|
end
|
87
79
|
end
|
88
80
|
end
|
81
|
+
|
82
|
+
def parsed_checks(check_id, values)
|
83
|
+
{
|
84
|
+
check_id: check_id,
|
85
|
+
passed: values["passed"],
|
86
|
+
required: values["required"],
|
87
|
+
errors: if values["errors"].key?(check_id)
|
88
|
+
values["errors"][check_id]["data"].inspect
|
89
|
+
end,
|
90
|
+
help: if values["errors"].key?(check_id)
|
91
|
+
values["errors"][check_id]["help"].inspect
|
92
|
+
end
|
93
|
+
}
|
94
|
+
end
|
89
95
|
end
|
90
96
|
end
|
91
97
|
end
|
@@ -50,10 +50,17 @@ module Crowbar
|
|
50
50
|
# @return [String] path to the API endpoint
|
51
51
|
#
|
52
52
|
def url
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
if attrs.nodes
|
54
|
+
[
|
55
|
+
"api",
|
56
|
+
"upgrade?nodes=true"
|
57
|
+
].join("/")
|
58
|
+
else
|
59
|
+
[
|
60
|
+
"api",
|
61
|
+
"upgrade"
|
62
|
+
].join("/")
|
63
|
+
end
|
57
64
|
end
|
58
65
|
end
|
59
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowbar-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Boerger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-02-
|
13
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|