crowbar-client 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc7312620bcab988a42d54a0c96e90e22562757a
4
- data.tar.gz: 1df4b71c34c8c0857c2ab3893db09ceb6efcbd70
3
+ metadata.gz: c7cd53688bfbc14f2894c740577bd8606e2a0162
4
+ data.tar.gz: 114e67d7040c3af63514ec9424432de09a02ae06
5
5
  SHA512:
6
- metadata.gz: 3cf3069b73cd4d7cc3e97950e616df935169331a6311e2b7d9556b13844c217d2b15ac3b365bd26354711610b2ba2e23dcdb8368881325e69e75e27da56f0a02
7
- data.tar.gz: 7fbbed8b5aae8c3164c8cd7005133b0f689654dd4ef17e089abbef0448f534296dcfecac80d1ecb51181d6d17627e8c11e9462da4fa2008be944610e65be24b4
6
+ metadata.gz: 6e366c5b53565cc2ef9767b0b4de934f59e5b2c668afd9e1fe2315490349b4c355f89bc3999e80342a853a6020f2a9c9e220fadf3978dc6c4278f04b78dd1576
7
+ data.tar.gz: fbe5929613ab1065b75a571b9b04dc37a9fa84870c40549b735c497a0ca030ac07c02b97da1bdcad86512559256b62c4b8a28816723e85af84847595c64e92d2
data/CHANGELOG.md CHANGED
@@ -1,11 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.0](https://github.com/crowbar/crowbar-client/releases/tag/v2.0.0) - 2015-11-12
4
+
5
+ * BREAKING
6
+ * Renamed bin/crowbar to bin/crowbarctl (@tboerger)
7
+ * BUGFIX
8
+ * Fixed format shortcuts to method instead of class options (@tboerger)
9
+ * ENHANCEMENT
10
+ * Be sure to set the correct output format(@tboerger)
11
+
3
12
  ## [1.0.1](https://github.com/crowbar/crowbar-client/releases/tag/v1.0.1) - 2015-11-11
4
13
 
5
- * Fixed typos for renaming of HostIP
6
- * Fixed typos for renaming of VirtualIP
7
- * Downgraded terminal-table dependency
14
+ * BUGFIX
15
+ * Fixed typos for renaming of HostIP (@tboerger)
16
+ * Fixed typos for renaming of VirtualIP (@tboerger)
17
+ * ENHANCEMENT
18
+ * Downgraded terminal-table dependency (@tboerger)
8
19
 
9
20
  ## [1.0.0](https://github.com/crowbar/crowbar-client/releases/tag/v1.0.0) - 2015-11-11
10
21
 
11
- * Initial release
22
+ * Initial release (@tboerger)
File without changes
@@ -40,19 +40,19 @@ module Crowbar
40
40
  banner: "<format>",
41
41
  desc: "Format of the output, valid formats are table, json or plain"
42
42
 
43
- class_option :table,
43
+ method_option :table,
44
44
  type: :boolean,
45
45
  default: false,
46
46
  aliases: [],
47
47
  desc: "Format output as table, a shortcut for --format table option"
48
48
 
49
- class_option :json,
49
+ method_option :json,
50
50
  type: :boolean,
51
51
  default: false,
52
52
  aliases: [],
53
53
  desc: "Format output as table, a shortcut for --format table option"
54
54
 
55
- class_option :plain,
55
+ method_option :plain,
56
56
  type: :boolean,
57
57
  default: false,
58
58
  aliases: [],
@@ -42,19 +42,19 @@ module Crowbar
42
42
  banner: "<format>",
43
43
  desc: "Format of the output, valid formats are table, json or plain"
44
44
 
45
- class_option :table,
45
+ method_option :table,
46
46
  type: :boolean,
47
47
  default: false,
48
48
  aliases: [],
49
49
  desc: "Format output as table, a shortcut for --format table option"
50
50
 
51
- class_option :json,
51
+ method_option :json,
52
52
  type: :boolean,
53
53
  default: false,
54
54
  aliases: [],
55
55
  desc: "Format output as table, a shortcut for --format table option"
56
56
 
57
- class_option :plain,
57
+ method_option :plain,
58
58
  type: :boolean,
59
59
  default: false,
60
60
  aliases: [],
@@ -98,19 +98,19 @@ module Crowbar
98
98
  banner: "<format>",
99
99
  desc: "Format of the output, valid formats are table, json or plain"
100
100
 
101
- class_option :table,
101
+ method_option :table,
102
102
  type: :boolean,
103
103
  default: false,
104
104
  aliases: [],
105
105
  desc: "Format output as table, a shortcut for --format table option"
106
106
 
107
- class_option :json,
107
+ method_option :json,
108
108
  type: :boolean,
109
109
  default: false,
110
110
  aliases: [],
111
111
  desc: "Format output as table, a shortcut for --format json option"
112
112
 
113
- class_option :plain,
113
+ method_option :plain,
114
114
  type: :boolean,
115
115
  default: false,
116
116
  aliases: [],
@@ -157,19 +157,19 @@ module Crowbar
157
157
  banner: "<format>",
158
158
  desc: "Format of the output, valid formats are table, json or plain"
159
159
 
160
- class_option :table,
160
+ method_option :table,
161
161
  type: :boolean,
162
162
  default: false,
163
163
  aliases: [],
164
164
  desc: "Format output as table, a shortcut for --format table option"
165
165
 
166
- class_option :json,
166
+ method_option :json,
167
167
  type: :boolean,
168
168
  default: false,
169
169
  aliases: [],
170
170
  desc: "Format output as table, a shortcut for --format table option"
171
171
 
172
- class_option :plain,
172
+ method_option :plain,
173
173
  type: :boolean,
174
174
  default: false,
175
175
  aliases: [],
@@ -42,19 +42,19 @@ module Crowbar
42
42
  banner: "<format>",
43
43
  desc: "Format of the output, valid formats are table, json or plain"
44
44
 
45
- class_option :table,
45
+ method_option :table,
46
46
  type: :boolean,
47
47
  default: false,
48
48
  aliases: [],
49
49
  desc: "Format output as table, a shortcut for --format table option"
50
50
 
51
- class_option :json,
51
+ method_option :json,
52
52
  type: :boolean,
53
53
  default: false,
54
54
  aliases: [],
55
55
  desc: "Format output as table, a shortcut for --format json option"
56
56
 
57
- class_option :plain,
57
+ method_option :plain,
58
58
  type: :boolean,
59
59
  default: false,
60
60
  aliases: [],
@@ -103,19 +103,19 @@ module Crowbar
103
103
  banner: "<format>",
104
104
  desc: "Format of the output, valid formats are table, json or plain"
105
105
 
106
- class_option :table,
106
+ method_option :table,
107
107
  type: :boolean,
108
108
  default: false,
109
109
  aliases: [],
110
110
  desc: "Format output as table, a shortcut for --format table option"
111
111
 
112
- class_option :json,
112
+ method_option :json,
113
113
  type: :boolean,
114
114
  default: false,
115
115
  aliases: [],
116
116
  desc: "Format output as table, a shortcut for --format json option"
117
117
 
118
- class_option :plain,
118
+ method_option :plain,
119
119
  type: :boolean,
120
120
  default: false,
121
121
  aliases: [],
@@ -171,7 +171,7 @@ module Crowbar
171
171
  banner: "<file>",
172
172
  desc: "Reading proposal data from this json file"
173
173
 
174
- class_option :merge,
174
+ method_option :merge,
175
175
  type: :boolean,
176
176
  default: false,
177
177
  aliases: ["-m"],
@@ -221,7 +221,7 @@ module Crowbar
221
221
  banner: "<file>",
222
222
  desc: "Reading proposal data from this json file"
223
223
 
224
- class_option :merge,
224
+ method_option :merge,
225
225
  type: :boolean,
226
226
  default: false,
227
227
  aliases: ["-m"],
@@ -42,19 +42,19 @@ module Crowbar
42
42
  banner: "<format>",
43
43
  desc: "Format of the output, valid formats are table, json or plain"
44
44
 
45
- class_option :table,
45
+ method_option :table,
46
46
  type: :boolean,
47
47
  default: false,
48
48
  aliases: [],
49
49
  desc: "Format output as table, a shortcut for --format table option"
50
50
 
51
- class_option :json,
51
+ method_option :json,
52
52
  type: :boolean,
53
53
  default: false,
54
54
  aliases: [],
55
55
  desc: "Format output as table, a shortcut for --format json option"
56
56
 
57
- class_option :plain,
57
+ method_option :plain,
58
58
  type: :boolean,
59
59
  default: false,
60
60
  aliases: [],
@@ -42,19 +42,19 @@ module Crowbar
42
42
  banner: "<format>",
43
43
  desc: "Format of the output, valid formats are table, json or plain"
44
44
 
45
- class_option :table,
45
+ method_option :table,
46
46
  type: :boolean,
47
47
  default: false,
48
48
  aliases: [],
49
49
  desc: "Format output as table, a shortcut for --format table option"
50
50
 
51
- class_option :json,
51
+ method_option :json,
52
52
  type: :boolean,
53
53
  default: false,
54
54
  aliases: [],
55
55
  desc: "Format output as table, a shortcut for --format json option"
56
56
 
57
- class_option :plain,
57
+ method_option :plain,
58
58
  type: :boolean,
59
59
  default: false,
60
60
  aliases: [],
@@ -100,19 +100,19 @@ module Crowbar
100
100
  banner: "<format>",
101
101
  desc: "Format of the output, valid formats are table, json or plain"
102
102
 
103
- class_option :table,
103
+ method_option :table,
104
104
  type: :boolean,
105
105
  default: false,
106
106
  aliases: [],
107
107
  desc: "Format output as table, a shortcut for --format table option"
108
108
 
109
- class_option :json,
109
+ method_option :json,
110
110
  type: :boolean,
111
111
  default: false,
112
112
  aliases: [],
113
113
  desc: "Format output as table, a shortcut for --format json option"
114
114
 
115
- class_option :plain,
115
+ method_option :plain,
116
116
  type: :boolean,
117
117
  default: false,
118
118
  aliases: [],
@@ -26,28 +26,28 @@ module Crowbar
26
26
  def provide_format
27
27
  case
28
28
  when json?
29
- :json
29
+ options[:format] = :json
30
30
  when plain?
31
- :plain
31
+ options[:format] = :plain
32
32
  when table?
33
- :table
34
- else
35
- :table
33
+ options[:format] = :table
36
34
  end
35
+
36
+ options[:format].to_sym
37
37
  end
38
38
 
39
39
  protected
40
40
 
41
41
  def json?
42
- options[:format] == "json" || options[:json]
42
+ options[:json]
43
43
  end
44
44
 
45
45
  def plain?
46
- options[:format] == "plain" || options[:plain]
46
+ options[:plain]
47
47
  end
48
48
 
49
49
  def table?
50
- options[:format] == "table" || options[:table]
50
+ options[:table]
51
51
  end
52
52
  end
53
53
  end
@@ -17,9 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  class Version
20
- MAJOR = 1
20
+ MAJOR = 2
21
21
  MINOR = 0
22
- PATCH = 1
22
+ PATCH = 0
23
23
 
24
24
  PRE = nil
25
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowbar-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Boerger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -197,14 +197,14 @@ description: |2
197
197
  email:
198
198
  - tboerger@suse.de
199
199
  executables:
200
- - crowbar
200
+ - crowbarctl
201
201
  extensions: []
202
202
  extra_rdoc_files: []
203
203
  files:
204
204
  - CHANGELOG.md
205
205
  - LICENSE
206
206
  - README.md
207
- - bin/crowbar
207
+ - bin/crowbarctl
208
208
  - lib/crowbar-client.rb
209
209
  - lib/crowbar/client.rb
210
210
  - lib/crowbar/client/app.rb