crowbar-client 1.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.
Files changed (232) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +6 -0
  3. data/LICENSE +202 -0
  4. data/README.md +49 -0
  5. data/bin/crowbar +37 -0
  6. data/lib/crowbar-client.rb +17 -0
  7. data/lib/crowbar/client.rb +82 -0
  8. data/lib/crowbar/client/app.rb +60 -0
  9. data/lib/crowbar/client/app/barclamp.rb +77 -0
  10. data/lib/crowbar/client/app/base.rb +97 -0
  11. data/lib/crowbar/client/app/batch.rb +100 -0
  12. data/lib/crowbar/client/app/entry.rb +121 -0
  13. data/lib/crowbar/client/app/host_ip.rb +65 -0
  14. data/lib/crowbar/client/app/interface.rb +63 -0
  15. data/lib/crowbar/client/app/network.rb +35 -0
  16. data/lib/crowbar/client/app/node.rb +451 -0
  17. data/lib/crowbar/client/app/proposal.rb +300 -0
  18. data/lib/crowbar/client/app/repository.rb +149 -0
  19. data/lib/crowbar/client/app/reset.rb +58 -0
  20. data/lib/crowbar/client/app/role.rb +140 -0
  21. data/lib/crowbar/client/app/virtual_ip.rb +65 -0
  22. data/lib/crowbar/client/command.rb +54 -0
  23. data/lib/crowbar/client/command/barclamp.rb +26 -0
  24. data/lib/crowbar/client/command/barclamp/list.rb +64 -0
  25. data/lib/crowbar/client/command/base.rb +55 -0
  26. data/lib/crowbar/client/command/batch.rb +29 -0
  27. data/lib/crowbar/client/command/batch/build.rb +36 -0
  28. data/lib/crowbar/client/command/batch/export.rb +36 -0
  29. data/lib/crowbar/client/command/host_ip.rb +29 -0
  30. data/lib/crowbar/client/command/host_ip/allocate.rb +50 -0
  31. data/lib/crowbar/client/command/host_ip/deallocate.rb +42 -0
  32. data/lib/crowbar/client/command/interface.rb +29 -0
  33. data/lib/crowbar/client/command/interface/disable.rb +42 -0
  34. data/lib/crowbar/client/command/interface/enable.rb +50 -0
  35. data/lib/crowbar/client/command/node.rb +74 -0
  36. data/lib/crowbar/client/command/node/allocate.rb +48 -0
  37. data/lib/crowbar/client/command/node/delete.rb +44 -0
  38. data/lib/crowbar/client/command/node/hardware.rb +48 -0
  39. data/lib/crowbar/client/command/node/identify.rb +48 -0
  40. data/lib/crowbar/client/command/node/list.rb +71 -0
  41. data/lib/crowbar/client/command/node/powercycle.rb +48 -0
  42. data/lib/crowbar/client/command/node/poweroff.rb +48 -0
  43. data/lib/crowbar/client/command/node/poweron.rb +48 -0
  44. data/lib/crowbar/client/command/node/reboot.rb +48 -0
  45. data/lib/crowbar/client/command/node/reinstall.rb +48 -0
  46. data/lib/crowbar/client/command/node/rename.rb +44 -0
  47. data/lib/crowbar/client/command/node/reset.rb +48 -0
  48. data/lib/crowbar/client/command/node/role.rb +44 -0
  49. data/lib/crowbar/client/command/node/show.rb +67 -0
  50. data/lib/crowbar/client/command/node/shutdown.rb +48 -0
  51. data/lib/crowbar/client/command/node/status.rb +71 -0
  52. data/lib/crowbar/client/command/node/transition.rb +44 -0
  53. data/lib/crowbar/client/command/proposal.rb +44 -0
  54. data/lib/crowbar/client/command/proposal/commit.rb +50 -0
  55. data/lib/crowbar/client/command/proposal/create.rb +130 -0
  56. data/lib/crowbar/client/command/proposal/delete.rb +48 -0
  57. data/lib/crowbar/client/command/proposal/dequeue.rb +48 -0
  58. data/lib/crowbar/client/command/proposal/edit.rb +129 -0
  59. data/lib/crowbar/client/command/proposal/list.rb +68 -0
  60. data/lib/crowbar/client/command/proposal/show.rb +71 -0
  61. data/lib/crowbar/client/command/repository.rb +38 -0
  62. data/lib/crowbar/client/command/repository/activate.rb +44 -0
  63. data/lib/crowbar/client/command/repository/activate_all.rb +42 -0
  64. data/lib/crowbar/client/command/repository/deactivate.rb +44 -0
  65. data/lib/crowbar/client/command/repository/deactivate_all.rb +42 -0
  66. data/lib/crowbar/client/command/repository/list.rb +71 -0
  67. data/lib/crowbar/client/command/reset.rb +29 -0
  68. data/lib/crowbar/client/command/reset/nodes.rb +36 -0
  69. data/lib/crowbar/client/command/reset/proposal.rb +36 -0
  70. data/lib/crowbar/client/command/role.rb +29 -0
  71. data/lib/crowbar/client/command/role/list.rb +70 -0
  72. data/lib/crowbar/client/command/role/show.rb +70 -0
  73. data/lib/crowbar/client/command/virtual_ip.rb +29 -0
  74. data/lib/crowbar/client/command/virtual_ip/allocate.rb +50 -0
  75. data/lib/crowbar/client/command/virtual_ip/deallocate.rb +42 -0
  76. data/lib/crowbar/client/config.rb +178 -0
  77. data/lib/crowbar/client/filter.rb +33 -0
  78. data/lib/crowbar/client/filter/array.rb +29 -0
  79. data/lib/crowbar/client/filter/base.rb +41 -0
  80. data/lib/crowbar/client/filter/hash.rb +33 -0
  81. data/lib/crowbar/client/filter/subset.rb +45 -0
  82. data/lib/crowbar/client/formatter.rb +33 -0
  83. data/lib/crowbar/client/formatter/array.rb +49 -0
  84. data/lib/crowbar/client/formatter/base.rb +47 -0
  85. data/lib/crowbar/client/formatter/hash.rb +51 -0
  86. data/lib/crowbar/client/formatter/nested.rb +134 -0
  87. data/lib/crowbar/client/mixin.rb +30 -0
  88. data/lib/crowbar/client/mixin/barclamp.rb +41 -0
  89. data/lib/crowbar/client/mixin/filter.rb +33 -0
  90. data/lib/crowbar/client/mixin/format.rb +56 -0
  91. data/lib/crowbar/client/request.rb +57 -0
  92. data/lib/crowbar/client/request/barclamp.rb +26 -0
  93. data/lib/crowbar/client/request/barclamp/list.rb +35 -0
  94. data/lib/crowbar/client/request/base.rb +71 -0
  95. data/lib/crowbar/client/request/batch.rb +29 -0
  96. data/lib/crowbar/client/request/batch/build.rb +33 -0
  97. data/lib/crowbar/client/request/batch/export.rb +33 -0
  98. data/lib/crowbar/client/request/host_ip.rb +29 -0
  99. data/lib/crowbar/client/request/host_ip/allocate.rb +50 -0
  100. data/lib/crowbar/client/request/host_ip/deallocate.rb +48 -0
  101. data/lib/crowbar/client/request/interface.rb +29 -0
  102. data/lib/crowbar/client/request/interface/disable.rb +48 -0
  103. data/lib/crowbar/client/request/interface/enable.rb +48 -0
  104. data/lib/crowbar/client/request/node.rb +47 -0
  105. data/lib/crowbar/client/request/node/action.rb +39 -0
  106. data/lib/crowbar/client/request/node/delete.rb +38 -0
  107. data/lib/crowbar/client/request/node/list.rb +37 -0
  108. data/lib/crowbar/client/request/node/rename.rb +47 -0
  109. data/lib/crowbar/client/request/node/role.rb +47 -0
  110. data/lib/crowbar/client/request/node/show.rb +38 -0
  111. data/lib/crowbar/client/request/node/status.rb +36 -0
  112. data/lib/crowbar/client/request/node/transition.rb +48 -0
  113. data/lib/crowbar/client/request/party.rb +79 -0
  114. data/lib/crowbar/client/request/proposal.rb +47 -0
  115. data/lib/crowbar/client/request/proposal/commit.rb +40 -0
  116. data/lib/crowbar/client/request/proposal/create.rb +46 -0
  117. data/lib/crowbar/client/request/proposal/delete.rb +39 -0
  118. data/lib/crowbar/client/request/proposal/dequeue.rb +40 -0
  119. data/lib/crowbar/client/request/proposal/edit.rb +47 -0
  120. data/lib/crowbar/client/request/proposal/list.rb +38 -0
  121. data/lib/crowbar/client/request/proposal/show.rb +39 -0
  122. data/lib/crowbar/client/request/proposal/template.rb +39 -0
  123. data/lib/crowbar/client/request/repository.rb +38 -0
  124. data/lib/crowbar/client/request/repository/activate.rb +46 -0
  125. data/lib/crowbar/client/request/repository/activate_all.rb +37 -0
  126. data/lib/crowbar/client/request/repository/deactivate.rb +46 -0
  127. data/lib/crowbar/client/request/repository/deactivate_all.rb +37 -0
  128. data/lib/crowbar/client/request/repository/list.rb +36 -0
  129. data/lib/crowbar/client/request/reset.rb +29 -0
  130. data/lib/crowbar/client/request/reset/nodes.rb +33 -0
  131. data/lib/crowbar/client/request/reset/proposal.rb +33 -0
  132. data/lib/crowbar/client/request/role.rb +29 -0
  133. data/lib/crowbar/client/request/role/list.rb +38 -0
  134. data/lib/crowbar/client/request/role/show.rb +39 -0
  135. data/lib/crowbar/client/request/virtual_ip.rb +29 -0
  136. data/lib/crowbar/client/request/virtual_ip/allocate.rb +50 -0
  137. data/lib/crowbar/client/request/virtual_ip/deallocate.rb +48 -0
  138. data/lib/crowbar/client/util.rb +27 -0
  139. data/lib/crowbar/client/util/editor.rb +107 -0
  140. data/lib/crowbar/client/util/runner.rb +77 -0
  141. data/lib/crowbar/client/version.rb +33 -0
  142. data/spec/crowbar/client/app_spec.rb +21 -0
  143. data/spec/crowbar/client/command/barclamp/list_spec.rb +39 -0
  144. data/spec/crowbar/client/command/batch/build_spec.rb +39 -0
  145. data/spec/crowbar/client/command/batch/export_spec.rb +39 -0
  146. data/spec/crowbar/client/command/host_ip/allocate_spec.rb +39 -0
  147. data/spec/crowbar/client/command/host_ip/deallocate_spec.rb +39 -0
  148. data/spec/crowbar/client/command/interface/disable_spec.rb +39 -0
  149. data/spec/crowbar/client/command/interface/enable_spec.rb +39 -0
  150. data/spec/crowbar/client/command/node/allocate_spec.rb +39 -0
  151. data/spec/crowbar/client/command/node/delete_spec.rb +39 -0
  152. data/spec/crowbar/client/command/node/hardware_spec.rb +39 -0
  153. data/spec/crowbar/client/command/node/identify_spec.rb +39 -0
  154. data/spec/crowbar/client/command/node/list_spec.rb +39 -0
  155. data/spec/crowbar/client/command/node/powercycle_spec.rb +39 -0
  156. data/spec/crowbar/client/command/node/poweroff_spec.rb +39 -0
  157. data/spec/crowbar/client/command/node/poweron_spec.rb +39 -0
  158. data/spec/crowbar/client/command/node/reboot_spec.rb +39 -0
  159. data/spec/crowbar/client/command/node/reinstall_spec.rb +39 -0
  160. data/spec/crowbar/client/command/node/rename_spec.rb +39 -0
  161. data/spec/crowbar/client/command/node/reset_spec.rb +39 -0
  162. data/spec/crowbar/client/command/node/role_spec.rb +39 -0
  163. data/spec/crowbar/client/command/node/show_spec.rb +39 -0
  164. data/spec/crowbar/client/command/node/shutdown_spec.rb +39 -0
  165. data/spec/crowbar/client/command/node/status_spec.rb +39 -0
  166. data/spec/crowbar/client/command/node/transition_spec.rb +39 -0
  167. data/spec/crowbar/client/command/proposal/commit_spec.rb +39 -0
  168. data/spec/crowbar/client/command/proposal/create_spec.rb +61 -0
  169. data/spec/crowbar/client/command/proposal/delete_spec.rb +39 -0
  170. data/spec/crowbar/client/command/proposal/dequeue_spec.rb +39 -0
  171. data/spec/crowbar/client/command/proposal/edit_spec.rb +62 -0
  172. data/spec/crowbar/client/command/proposal/list_spec.rb +39 -0
  173. data/spec/crowbar/client/command/proposal/show_spec.rb +39 -0
  174. data/spec/crowbar/client/command/repository/activate_all_spec.rb +39 -0
  175. data/spec/crowbar/client/command/repository/activate_spec.rb +39 -0
  176. data/spec/crowbar/client/command/repository/deactivate_all_spec.rb +39 -0
  177. data/spec/crowbar/client/command/repository/deactivate_spec.rb +39 -0
  178. data/spec/crowbar/client/command/repository/list_spec.rb +39 -0
  179. data/spec/crowbar/client/command/reset/nodes_spec.rb +39 -0
  180. data/spec/crowbar/client/command/reset/proposal_spec.rb +39 -0
  181. data/spec/crowbar/client/command/role/list_spec.rb +39 -0
  182. data/spec/crowbar/client/command/role/show_spec.rb +39 -0
  183. data/spec/crowbar/client/command/virtual_ip/allocate_spec.rb +39 -0
  184. data/spec/crowbar/client/command/virtual_ip/deallocate_spec.rb +39 -0
  185. data/spec/crowbar/client/filter/array_spec.rb +65 -0
  186. data/spec/crowbar/client/filter/hash_spec.rb +65 -0
  187. data/spec/crowbar/client/filter/subset_spec.rb +77 -0
  188. data/spec/crowbar/client/formatter/array_spec.rb +102 -0
  189. data/spec/crowbar/client/formatter/hash_spec.rb +108 -0
  190. data/spec/crowbar/client/formatter/nested_spec.rb +106 -0
  191. data/spec/crowbar/client/request/barclamp/list_spec.rb +50 -0
  192. data/spec/crowbar/client/request/batch/build_spec.rb +64 -0
  193. data/spec/crowbar/client/request/batch/export_spec.rb +64 -0
  194. data/spec/crowbar/client/request/host_ip/allocate_spec.rb +61 -0
  195. data/spec/crowbar/client/request/host_ip/deallocate_spec.rb +57 -0
  196. data/spec/crowbar/client/request/interface/disable_spec.rb +57 -0
  197. data/spec/crowbar/client/request/interface/enable_spec.rb +57 -0
  198. data/spec/crowbar/client/request/node/action_spec.rb +53 -0
  199. data/spec/crowbar/client/request/node/delete_spec.rb +52 -0
  200. data/spec/crowbar/client/request/node/list_spec.rb +50 -0
  201. data/spec/crowbar/client/request/node/rename_spec.rb +55 -0
  202. data/spec/crowbar/client/request/node/role_spec.rb +55 -0
  203. data/spec/crowbar/client/request/node/show_spec.rb +52 -0
  204. data/spec/crowbar/client/request/node/status_spec.rb +50 -0
  205. data/spec/crowbar/client/request/node/transition_spec.rb +56 -0
  206. data/spec/crowbar/client/request/party_spec.rb +24 -0
  207. data/spec/crowbar/client/request/proposal/commit_spec.rb +53 -0
  208. data/spec/crowbar/client/request/proposal/create_spec.rb +56 -0
  209. data/spec/crowbar/client/request/proposal/delete_spec.rb +53 -0
  210. data/spec/crowbar/client/request/proposal/dequeue_spec.rb +53 -0
  211. data/spec/crowbar/client/request/proposal/edit_spec.rb +56 -0
  212. data/spec/crowbar/client/request/proposal/list_spec.rb +52 -0
  213. data/spec/crowbar/client/request/proposal/show_spec.rb +53 -0
  214. data/spec/crowbar/client/request/proposal/template_spec.rb +52 -0
  215. data/spec/crowbar/client/request/repository/activate_all_spec.rb +50 -0
  216. data/spec/crowbar/client/request/repository/activate_spec.rb +56 -0
  217. data/spec/crowbar/client/request/repository/deactivate_all_spec.rb +50 -0
  218. data/spec/crowbar/client/request/repository/deactivate_spec.rb +56 -0
  219. data/spec/crowbar/client/request/repository/list_spec.rb +50 -0
  220. data/spec/crowbar/client/request/reset/nodes_spec.rb +55 -0
  221. data/spec/crowbar/client/request/reset/proposal_spec.rb +55 -0
  222. data/spec/crowbar/client/request/role/list_spec.rb +52 -0
  223. data/spec/crowbar/client/request/role/show_spec.rb +53 -0
  224. data/spec/crowbar/client/request/virtual_ip/allocate_spec.rb +61 -0
  225. data/spec/crowbar/client/request/virtual_ip/deallocate_spec.rb +57 -0
  226. data/spec/crowbar/client/util/editor_spec.rb +108 -0
  227. data/spec/crowbar/client/util/runner_spec.rb +24 -0
  228. data/spec/crowbar/client_spec.rb +21 -0
  229. data/spec/spec_helper.rb +55 -0
  230. data/spec/support/command_context.rb +37 -0
  231. data/spec/support/request_examples.rb +55 -0
  232. metadata +549 -0
@@ -0,0 +1,108 @@
1
+ #
2
+ # Copyright 2015, SUSE Linux GmbH
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require_relative "../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Util::Editor" do
20
+ subject { ::Crowbar::Client::Util::Editor }
21
+
22
+ let!(:file) do
23
+ Tempfile.new("editor")
24
+ end
25
+
26
+ before :each do
27
+ allow_any_instance_of(subject).to(
28
+ receive(:file).and_return(file)
29
+ )
30
+ end
31
+
32
+ context "when calling editor" do
33
+ context "from unknown env variable" do
34
+ it "tries to start an editor" do
35
+ ENV["EDITOR"] = nil
36
+
37
+ expect_any_instance_of(subject).to(
38
+ receive(:system)
39
+ .with("vi", file.path)
40
+ .and_return(true)
41
+ )
42
+
43
+ expect do
44
+ subject.new.edit!
45
+ end.to(
46
+ raise_error(Crowbar::Client::EditorAbortError)
47
+ )
48
+ end
49
+ end
50
+
51
+ context "from specific env variable" do
52
+ it "tries to start an editor" do
53
+ ENV["EDITOR"] = "nano"
54
+
55
+ expect_any_instance_of(subject).to(
56
+ receive(:system)
57
+ .with(ENV["EDITOR"], file.path)
58
+ .and_return(true)
59
+ )
60
+
61
+ expect do
62
+ subject.new.edit!
63
+ end.to(
64
+ raise_error(Crowbar::Client::EditorAbortError)
65
+ )
66
+ end
67
+ end
68
+ end
69
+
70
+ context "with json format" do
71
+ context "while getting the result" do
72
+ it "returns a hash" do
73
+ instance = subject.new(format: :json)
74
+ instance.content = "{}"
75
+
76
+ expect(
77
+ instance.result
78
+ ).to eq({})
79
+ end
80
+
81
+ it "raises an error on bad content" do
82
+ instance = subject.new(format: :json)
83
+ instance.content = "foo"
84
+
85
+ expect do
86
+ instance.result
87
+ end.to(
88
+ raise_error(Crowbar::Client::InvalidJsonError)
89
+ )
90
+ end
91
+ end
92
+ end
93
+
94
+ context "with invalid format" do
95
+ context "while getting the result" do
96
+ it "raises an invalid format error" do
97
+ instance = subject.new(format: :foo)
98
+ instance.content = "{}"
99
+
100
+ expect do
101
+ instance.result
102
+ end.to(
103
+ raise_error(Crowbar::Client::InvalidFormatError)
104
+ )
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,24 @@
1
+ #
2
+ # Copyright 2015, SUSE Linux GmbH
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require_relative "../../../spec_helper"
18
+
19
+ describe "Crowbar::Client::Util::Runner" do
20
+ subject { ::Crowbar::Client::Util::Runner }
21
+
22
+ pending
23
+
24
+ end
@@ -0,0 +1,21 @@
1
+ #
2
+ # Copyright 2015, SUSE Linux GmbH
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require_relative "../spec_helper"
18
+
19
+ describe Crowbar::Client do
20
+ subject { ::Crowbar::Client }
21
+ end
@@ -0,0 +1,55 @@
1
+ #
2
+ # Copyright 2015, SUSE Linux GmbH
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require "simplecov"
18
+
19
+ if ENV["CODECLIMATE_REPO_TOKEN"]
20
+ require "coveralls"
21
+ require "codeclimate-test-reporter"
22
+
23
+ Coveralls.wear!
24
+ CodeClimate::TestReporter.start
25
+
26
+ SimpleCov.start do
27
+ add_filter "/spec"
28
+
29
+ formatter SimpleCov::Formatter::MultiFormatter[
30
+ SimpleCov::Formatter::HTMLFormatter,
31
+ CodeClimate::TestReporter::Formatter
32
+ ]
33
+ end
34
+ else
35
+ SimpleCov.start do
36
+ add_filter "/spec"
37
+ end
38
+ end
39
+
40
+ require "crowbar/client"
41
+ require "rspec"
42
+ require "webmock/rspec"
43
+
44
+ WebMock.disable_net_connect!(
45
+ allow: "codeclimate.com"
46
+ )
47
+
48
+ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each do |f|
49
+ require f
50
+ end
51
+
52
+ RSpec.configure do |config|
53
+ config.mock_with :rspec
54
+ config.order = "random"
55
+ end
@@ -0,0 +1,37 @@
1
+ #
2
+ # Copyright 2015, SUSE Linux GmbH
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ shared_context "command_context" do
18
+ before(:each) do
19
+ Crowbar::Client::Config.configure(
20
+ Crowbar::Client::Config.defaults.merge(
21
+ server: "http://crowbar:80"
22
+ )
23
+ )
24
+ end
25
+
26
+ let!(:stdin) do
27
+ StringIO.new
28
+ end
29
+
30
+ let!(:stdout) do
31
+ StringIO.new
32
+ end
33
+
34
+ let!(:stderr) do
35
+ StringIO.new
36
+ end
37
+ end
@@ -0,0 +1,55 @@
1
+ #
2
+ # Copyright 2015, SUSE Linux GmbH
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ shared_examples "a request class" do
18
+ before(:each) do
19
+ Crowbar::Client::Config.configure(
20
+ Crowbar::Client::Config.defaults.merge(
21
+ server: "http://crowbar:80"
22
+ )
23
+ )
24
+ end
25
+
26
+ it "provides a method value" do
27
+ expect(subject.method).to(
28
+ eql(method)
29
+ )
30
+ end
31
+
32
+ it "provides a specific url" do
33
+ expect(subject.url).to(
34
+ eql(url)
35
+ )
36
+ end
37
+
38
+ it "provides a valid payload" do
39
+ expect(subject.content).to(
40
+ eql(params)
41
+ )
42
+ end
43
+
44
+ it "submits payload to an API" do
45
+ expect(::Crowbar::Client::Request::Party).to(
46
+ receive(method).with(
47
+ "/#{url}",
48
+ body: params.to_json,
49
+ headers: headers
50
+ )
51
+ )
52
+
53
+ subject.process
54
+ end
55
+ end
metadata ADDED
@@ -0,0 +1,549 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: crowbar-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Boerger
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: aruba
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: thor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 0.19.1
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.19.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 3.0.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 3.0.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: httparty
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 0.13.3
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 0.13.3
139
+ - !ruby/object:Gem::Dependency
140
+ name: inifile
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 3.0.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 3.0.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: terminal-table
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 1.5.2
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 1.5.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: easy_diff
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 0.0.5
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 0.0.5
181
+ - !ruby/object:Gem::Dependency
182
+ name: hashie
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 3.4.1
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: 3.4.1
195
+ description: |2
196
+ Standalone commandline client for crowbar
197
+ email:
198
+ - tboerger@suse.de
199
+ executables:
200
+ - crowbar
201
+ extensions: []
202
+ extra_rdoc_files: []
203
+ files:
204
+ - CHANGELOG.md
205
+ - LICENSE
206
+ - README.md
207
+ - bin/crowbar
208
+ - lib/crowbar-client.rb
209
+ - lib/crowbar/client.rb
210
+ - lib/crowbar/client/app.rb
211
+ - lib/crowbar/client/app/barclamp.rb
212
+ - lib/crowbar/client/app/base.rb
213
+ - lib/crowbar/client/app/batch.rb
214
+ - lib/crowbar/client/app/entry.rb
215
+ - lib/crowbar/client/app/host_ip.rb
216
+ - lib/crowbar/client/app/interface.rb
217
+ - lib/crowbar/client/app/network.rb
218
+ - lib/crowbar/client/app/node.rb
219
+ - lib/crowbar/client/app/proposal.rb
220
+ - lib/crowbar/client/app/repository.rb
221
+ - lib/crowbar/client/app/reset.rb
222
+ - lib/crowbar/client/app/role.rb
223
+ - lib/crowbar/client/app/virtual_ip.rb
224
+ - lib/crowbar/client/command.rb
225
+ - lib/crowbar/client/command/barclamp.rb
226
+ - lib/crowbar/client/command/barclamp/list.rb
227
+ - lib/crowbar/client/command/base.rb
228
+ - lib/crowbar/client/command/batch.rb
229
+ - lib/crowbar/client/command/batch/build.rb
230
+ - lib/crowbar/client/command/batch/export.rb
231
+ - lib/crowbar/client/command/host_ip.rb
232
+ - lib/crowbar/client/command/host_ip/allocate.rb
233
+ - lib/crowbar/client/command/host_ip/deallocate.rb
234
+ - lib/crowbar/client/command/interface.rb
235
+ - lib/crowbar/client/command/interface/disable.rb
236
+ - lib/crowbar/client/command/interface/enable.rb
237
+ - lib/crowbar/client/command/node.rb
238
+ - lib/crowbar/client/command/node/allocate.rb
239
+ - lib/crowbar/client/command/node/delete.rb
240
+ - lib/crowbar/client/command/node/hardware.rb
241
+ - lib/crowbar/client/command/node/identify.rb
242
+ - lib/crowbar/client/command/node/list.rb
243
+ - lib/crowbar/client/command/node/powercycle.rb
244
+ - lib/crowbar/client/command/node/poweroff.rb
245
+ - lib/crowbar/client/command/node/poweron.rb
246
+ - lib/crowbar/client/command/node/reboot.rb
247
+ - lib/crowbar/client/command/node/reinstall.rb
248
+ - lib/crowbar/client/command/node/rename.rb
249
+ - lib/crowbar/client/command/node/reset.rb
250
+ - lib/crowbar/client/command/node/role.rb
251
+ - lib/crowbar/client/command/node/show.rb
252
+ - lib/crowbar/client/command/node/shutdown.rb
253
+ - lib/crowbar/client/command/node/status.rb
254
+ - lib/crowbar/client/command/node/transition.rb
255
+ - lib/crowbar/client/command/proposal.rb
256
+ - lib/crowbar/client/command/proposal/commit.rb
257
+ - lib/crowbar/client/command/proposal/create.rb
258
+ - lib/crowbar/client/command/proposal/delete.rb
259
+ - lib/crowbar/client/command/proposal/dequeue.rb
260
+ - lib/crowbar/client/command/proposal/edit.rb
261
+ - lib/crowbar/client/command/proposal/list.rb
262
+ - lib/crowbar/client/command/proposal/show.rb
263
+ - lib/crowbar/client/command/repository.rb
264
+ - lib/crowbar/client/command/repository/activate.rb
265
+ - lib/crowbar/client/command/repository/activate_all.rb
266
+ - lib/crowbar/client/command/repository/deactivate.rb
267
+ - lib/crowbar/client/command/repository/deactivate_all.rb
268
+ - lib/crowbar/client/command/repository/list.rb
269
+ - lib/crowbar/client/command/reset.rb
270
+ - lib/crowbar/client/command/reset/nodes.rb
271
+ - lib/crowbar/client/command/reset/proposal.rb
272
+ - lib/crowbar/client/command/role.rb
273
+ - lib/crowbar/client/command/role/list.rb
274
+ - lib/crowbar/client/command/role/show.rb
275
+ - lib/crowbar/client/command/virtual_ip.rb
276
+ - lib/crowbar/client/command/virtual_ip/allocate.rb
277
+ - lib/crowbar/client/command/virtual_ip/deallocate.rb
278
+ - lib/crowbar/client/config.rb
279
+ - lib/crowbar/client/filter.rb
280
+ - lib/crowbar/client/filter/array.rb
281
+ - lib/crowbar/client/filter/base.rb
282
+ - lib/crowbar/client/filter/hash.rb
283
+ - lib/crowbar/client/filter/subset.rb
284
+ - lib/crowbar/client/formatter.rb
285
+ - lib/crowbar/client/formatter/array.rb
286
+ - lib/crowbar/client/formatter/base.rb
287
+ - lib/crowbar/client/formatter/hash.rb
288
+ - lib/crowbar/client/formatter/nested.rb
289
+ - lib/crowbar/client/mixin.rb
290
+ - lib/crowbar/client/mixin/barclamp.rb
291
+ - lib/crowbar/client/mixin/filter.rb
292
+ - lib/crowbar/client/mixin/format.rb
293
+ - lib/crowbar/client/request.rb
294
+ - lib/crowbar/client/request/barclamp.rb
295
+ - lib/crowbar/client/request/barclamp/list.rb
296
+ - lib/crowbar/client/request/base.rb
297
+ - lib/crowbar/client/request/batch.rb
298
+ - lib/crowbar/client/request/batch/build.rb
299
+ - lib/crowbar/client/request/batch/export.rb
300
+ - lib/crowbar/client/request/host_ip.rb
301
+ - lib/crowbar/client/request/host_ip/allocate.rb
302
+ - lib/crowbar/client/request/host_ip/deallocate.rb
303
+ - lib/crowbar/client/request/interface.rb
304
+ - lib/crowbar/client/request/interface/disable.rb
305
+ - lib/crowbar/client/request/interface/enable.rb
306
+ - lib/crowbar/client/request/node.rb
307
+ - lib/crowbar/client/request/node/action.rb
308
+ - lib/crowbar/client/request/node/delete.rb
309
+ - lib/crowbar/client/request/node/list.rb
310
+ - lib/crowbar/client/request/node/rename.rb
311
+ - lib/crowbar/client/request/node/role.rb
312
+ - lib/crowbar/client/request/node/show.rb
313
+ - lib/crowbar/client/request/node/status.rb
314
+ - lib/crowbar/client/request/node/transition.rb
315
+ - lib/crowbar/client/request/party.rb
316
+ - lib/crowbar/client/request/proposal.rb
317
+ - lib/crowbar/client/request/proposal/commit.rb
318
+ - lib/crowbar/client/request/proposal/create.rb
319
+ - lib/crowbar/client/request/proposal/delete.rb
320
+ - lib/crowbar/client/request/proposal/dequeue.rb
321
+ - lib/crowbar/client/request/proposal/edit.rb
322
+ - lib/crowbar/client/request/proposal/list.rb
323
+ - lib/crowbar/client/request/proposal/show.rb
324
+ - lib/crowbar/client/request/proposal/template.rb
325
+ - lib/crowbar/client/request/repository.rb
326
+ - lib/crowbar/client/request/repository/activate.rb
327
+ - lib/crowbar/client/request/repository/activate_all.rb
328
+ - lib/crowbar/client/request/repository/deactivate.rb
329
+ - lib/crowbar/client/request/repository/deactivate_all.rb
330
+ - lib/crowbar/client/request/repository/list.rb
331
+ - lib/crowbar/client/request/reset.rb
332
+ - lib/crowbar/client/request/reset/nodes.rb
333
+ - lib/crowbar/client/request/reset/proposal.rb
334
+ - lib/crowbar/client/request/role.rb
335
+ - lib/crowbar/client/request/role/list.rb
336
+ - lib/crowbar/client/request/role/show.rb
337
+ - lib/crowbar/client/request/virtual_ip.rb
338
+ - lib/crowbar/client/request/virtual_ip/allocate.rb
339
+ - lib/crowbar/client/request/virtual_ip/deallocate.rb
340
+ - lib/crowbar/client/util.rb
341
+ - lib/crowbar/client/util/editor.rb
342
+ - lib/crowbar/client/util/runner.rb
343
+ - lib/crowbar/client/version.rb
344
+ - spec/crowbar/client/app_spec.rb
345
+ - spec/crowbar/client/command/barclamp/list_spec.rb
346
+ - spec/crowbar/client/command/batch/build_spec.rb
347
+ - spec/crowbar/client/command/batch/export_spec.rb
348
+ - spec/crowbar/client/command/host_ip/allocate_spec.rb
349
+ - spec/crowbar/client/command/host_ip/deallocate_spec.rb
350
+ - spec/crowbar/client/command/interface/disable_spec.rb
351
+ - spec/crowbar/client/command/interface/enable_spec.rb
352
+ - spec/crowbar/client/command/node/allocate_spec.rb
353
+ - spec/crowbar/client/command/node/delete_spec.rb
354
+ - spec/crowbar/client/command/node/hardware_spec.rb
355
+ - spec/crowbar/client/command/node/identify_spec.rb
356
+ - spec/crowbar/client/command/node/list_spec.rb
357
+ - spec/crowbar/client/command/node/powercycle_spec.rb
358
+ - spec/crowbar/client/command/node/poweroff_spec.rb
359
+ - spec/crowbar/client/command/node/poweron_spec.rb
360
+ - spec/crowbar/client/command/node/reboot_spec.rb
361
+ - spec/crowbar/client/command/node/reinstall_spec.rb
362
+ - spec/crowbar/client/command/node/rename_spec.rb
363
+ - spec/crowbar/client/command/node/reset_spec.rb
364
+ - spec/crowbar/client/command/node/role_spec.rb
365
+ - spec/crowbar/client/command/node/show_spec.rb
366
+ - spec/crowbar/client/command/node/shutdown_spec.rb
367
+ - spec/crowbar/client/command/node/status_spec.rb
368
+ - spec/crowbar/client/command/node/transition_spec.rb
369
+ - spec/crowbar/client/command/proposal/commit_spec.rb
370
+ - spec/crowbar/client/command/proposal/create_spec.rb
371
+ - spec/crowbar/client/command/proposal/delete_spec.rb
372
+ - spec/crowbar/client/command/proposal/dequeue_spec.rb
373
+ - spec/crowbar/client/command/proposal/edit_spec.rb
374
+ - spec/crowbar/client/command/proposal/list_spec.rb
375
+ - spec/crowbar/client/command/proposal/show_spec.rb
376
+ - spec/crowbar/client/command/repository/activate_all_spec.rb
377
+ - spec/crowbar/client/command/repository/activate_spec.rb
378
+ - spec/crowbar/client/command/repository/deactivate_all_spec.rb
379
+ - spec/crowbar/client/command/repository/deactivate_spec.rb
380
+ - spec/crowbar/client/command/repository/list_spec.rb
381
+ - spec/crowbar/client/command/reset/nodes_spec.rb
382
+ - spec/crowbar/client/command/reset/proposal_spec.rb
383
+ - spec/crowbar/client/command/role/list_spec.rb
384
+ - spec/crowbar/client/command/role/show_spec.rb
385
+ - spec/crowbar/client/command/virtual_ip/allocate_spec.rb
386
+ - spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
387
+ - spec/crowbar/client/filter/array_spec.rb
388
+ - spec/crowbar/client/filter/hash_spec.rb
389
+ - spec/crowbar/client/filter/subset_spec.rb
390
+ - spec/crowbar/client/formatter/array_spec.rb
391
+ - spec/crowbar/client/formatter/hash_spec.rb
392
+ - spec/crowbar/client/formatter/nested_spec.rb
393
+ - spec/crowbar/client/request/barclamp/list_spec.rb
394
+ - spec/crowbar/client/request/batch/build_spec.rb
395
+ - spec/crowbar/client/request/batch/export_spec.rb
396
+ - spec/crowbar/client/request/host_ip/allocate_spec.rb
397
+ - spec/crowbar/client/request/host_ip/deallocate_spec.rb
398
+ - spec/crowbar/client/request/interface/disable_spec.rb
399
+ - spec/crowbar/client/request/interface/enable_spec.rb
400
+ - spec/crowbar/client/request/node/action_spec.rb
401
+ - spec/crowbar/client/request/node/delete_spec.rb
402
+ - spec/crowbar/client/request/node/list_spec.rb
403
+ - spec/crowbar/client/request/node/rename_spec.rb
404
+ - spec/crowbar/client/request/node/role_spec.rb
405
+ - spec/crowbar/client/request/node/show_spec.rb
406
+ - spec/crowbar/client/request/node/status_spec.rb
407
+ - spec/crowbar/client/request/node/transition_spec.rb
408
+ - spec/crowbar/client/request/party_spec.rb
409
+ - spec/crowbar/client/request/proposal/commit_spec.rb
410
+ - spec/crowbar/client/request/proposal/create_spec.rb
411
+ - spec/crowbar/client/request/proposal/delete_spec.rb
412
+ - spec/crowbar/client/request/proposal/dequeue_spec.rb
413
+ - spec/crowbar/client/request/proposal/edit_spec.rb
414
+ - spec/crowbar/client/request/proposal/list_spec.rb
415
+ - spec/crowbar/client/request/proposal/show_spec.rb
416
+ - spec/crowbar/client/request/proposal/template_spec.rb
417
+ - spec/crowbar/client/request/repository/activate_all_spec.rb
418
+ - spec/crowbar/client/request/repository/activate_spec.rb
419
+ - spec/crowbar/client/request/repository/deactivate_all_spec.rb
420
+ - spec/crowbar/client/request/repository/deactivate_spec.rb
421
+ - spec/crowbar/client/request/repository/list_spec.rb
422
+ - spec/crowbar/client/request/reset/nodes_spec.rb
423
+ - spec/crowbar/client/request/reset/proposal_spec.rb
424
+ - spec/crowbar/client/request/role/list_spec.rb
425
+ - spec/crowbar/client/request/role/show_spec.rb
426
+ - spec/crowbar/client/request/virtual_ip/allocate_spec.rb
427
+ - spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
428
+ - spec/crowbar/client/util/editor_spec.rb
429
+ - spec/crowbar/client/util/runner_spec.rb
430
+ - spec/crowbar/client_spec.rb
431
+ - spec/spec_helper.rb
432
+ - spec/support/command_context.rb
433
+ - spec/support/request_examples.rb
434
+ homepage: https://github.com/crowbar/crowbar-client
435
+ licenses:
436
+ - Apache-2.0
437
+ metadata: {}
438
+ post_install_message:
439
+ rdoc_options: []
440
+ require_paths:
441
+ - lib
442
+ required_ruby_version: !ruby/object:Gem::Requirement
443
+ requirements:
444
+ - - ">="
445
+ - !ruby/object:Gem::Version
446
+ version: 1.9.3
447
+ required_rubygems_version: !ruby/object:Gem::Requirement
448
+ requirements:
449
+ - - ">="
450
+ - !ruby/object:Gem::Version
451
+ version: '0'
452
+ requirements: []
453
+ rubyforge_project:
454
+ rubygems_version: 2.2.2
455
+ signing_key:
456
+ specification_version: 4
457
+ summary: Crowbar commandline client
458
+ test_files:
459
+ - spec/support/request_examples.rb
460
+ - spec/support/command_context.rb
461
+ - spec/crowbar/client/app_spec.rb
462
+ - spec/crowbar/client/formatter/nested_spec.rb
463
+ - spec/crowbar/client/formatter/array_spec.rb
464
+ - spec/crowbar/client/formatter/hash_spec.rb
465
+ - spec/crowbar/client/filter/array_spec.rb
466
+ - spec/crowbar/client/filter/hash_spec.rb
467
+ - spec/crowbar/client/filter/subset_spec.rb
468
+ - spec/crowbar/client/util/editor_spec.rb
469
+ - spec/crowbar/client/util/runner_spec.rb
470
+ - spec/crowbar/client/command/host_ip/allocate_spec.rb
471
+ - spec/crowbar/client/command/host_ip/deallocate_spec.rb
472
+ - spec/crowbar/client/command/repository/activate_all_spec.rb
473
+ - spec/crowbar/client/command/repository/deactivate_spec.rb
474
+ - spec/crowbar/client/command/repository/list_spec.rb
475
+ - spec/crowbar/client/command/repository/deactivate_all_spec.rb
476
+ - spec/crowbar/client/command/repository/activate_spec.rb
477
+ - spec/crowbar/client/command/role/show_spec.rb
478
+ - spec/crowbar/client/command/role/list_spec.rb
479
+ - spec/crowbar/client/command/barclamp/list_spec.rb
480
+ - spec/crowbar/client/command/proposal/show_spec.rb
481
+ - spec/crowbar/client/command/proposal/dequeue_spec.rb
482
+ - spec/crowbar/client/command/proposal/delete_spec.rb
483
+ - spec/crowbar/client/command/proposal/edit_spec.rb
484
+ - spec/crowbar/client/command/proposal/list_spec.rb
485
+ - spec/crowbar/client/command/proposal/commit_spec.rb
486
+ - spec/crowbar/client/command/proposal/create_spec.rb
487
+ - spec/crowbar/client/command/virtual_ip/allocate_spec.rb
488
+ - spec/crowbar/client/command/virtual_ip/deallocate_spec.rb
489
+ - spec/crowbar/client/command/reset/nodes_spec.rb
490
+ - spec/crowbar/client/command/reset/proposal_spec.rb
491
+ - spec/crowbar/client/command/batch/export_spec.rb
492
+ - spec/crowbar/client/command/batch/build_spec.rb
493
+ - spec/crowbar/client/command/node/role_spec.rb
494
+ - spec/crowbar/client/command/node/transition_spec.rb
495
+ - spec/crowbar/client/command/node/show_spec.rb
496
+ - spec/crowbar/client/command/node/poweroff_spec.rb
497
+ - spec/crowbar/client/command/node/hardware_spec.rb
498
+ - spec/crowbar/client/command/node/identify_spec.rb
499
+ - spec/crowbar/client/command/node/reset_spec.rb
500
+ - spec/crowbar/client/command/node/delete_spec.rb
501
+ - spec/crowbar/client/command/node/rename_spec.rb
502
+ - spec/crowbar/client/command/node/list_spec.rb
503
+ - spec/crowbar/client/command/node/poweron_spec.rb
504
+ - spec/crowbar/client/command/node/allocate_spec.rb
505
+ - spec/crowbar/client/command/node/reboot_spec.rb
506
+ - spec/crowbar/client/command/node/status_spec.rb
507
+ - spec/crowbar/client/command/node/shutdown_spec.rb
508
+ - spec/crowbar/client/command/node/powercycle_spec.rb
509
+ - spec/crowbar/client/command/node/reinstall_spec.rb
510
+ - spec/crowbar/client/command/interface/enable_spec.rb
511
+ - spec/crowbar/client/command/interface/disable_spec.rb
512
+ - spec/crowbar/client/request/party_spec.rb
513
+ - spec/crowbar/client/request/host_ip/allocate_spec.rb
514
+ - spec/crowbar/client/request/host_ip/deallocate_spec.rb
515
+ - spec/crowbar/client/request/repository/activate_all_spec.rb
516
+ - spec/crowbar/client/request/repository/deactivate_spec.rb
517
+ - spec/crowbar/client/request/repository/list_spec.rb
518
+ - spec/crowbar/client/request/repository/deactivate_all_spec.rb
519
+ - spec/crowbar/client/request/repository/activate_spec.rb
520
+ - spec/crowbar/client/request/role/show_spec.rb
521
+ - spec/crowbar/client/request/role/list_spec.rb
522
+ - spec/crowbar/client/request/barclamp/list_spec.rb
523
+ - spec/crowbar/client/request/proposal/show_spec.rb
524
+ - spec/crowbar/client/request/proposal/dequeue_spec.rb
525
+ - spec/crowbar/client/request/proposal/template_spec.rb
526
+ - spec/crowbar/client/request/proposal/delete_spec.rb
527
+ - spec/crowbar/client/request/proposal/edit_spec.rb
528
+ - spec/crowbar/client/request/proposal/list_spec.rb
529
+ - spec/crowbar/client/request/proposal/commit_spec.rb
530
+ - spec/crowbar/client/request/proposal/create_spec.rb
531
+ - spec/crowbar/client/request/virtual_ip/allocate_spec.rb
532
+ - spec/crowbar/client/request/virtual_ip/deallocate_spec.rb
533
+ - spec/crowbar/client/request/reset/nodes_spec.rb
534
+ - spec/crowbar/client/request/reset/proposal_spec.rb
535
+ - spec/crowbar/client/request/batch/export_spec.rb
536
+ - spec/crowbar/client/request/batch/build_spec.rb
537
+ - spec/crowbar/client/request/node/role_spec.rb
538
+ - spec/crowbar/client/request/node/transition_spec.rb
539
+ - spec/crowbar/client/request/node/show_spec.rb
540
+ - spec/crowbar/client/request/node/delete_spec.rb
541
+ - spec/crowbar/client/request/node/rename_spec.rb
542
+ - spec/crowbar/client/request/node/list_spec.rb
543
+ - spec/crowbar/client/request/node/action_spec.rb
544
+ - spec/crowbar/client/request/node/status_spec.rb
545
+ - spec/crowbar/client/request/interface/enable_spec.rb
546
+ - spec/crowbar/client/request/interface/disable_spec.rb
547
+ - spec/crowbar/client_spec.rb
548
+ - spec/spec_helper.rb
549
+ has_rdoc: