crowbar-client 2.4.1 → 2.4.2

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 (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +18 -6
  4. data/lib/crowbar/client.rb +54 -0
  5. data/lib/crowbar/client/app.rb +3 -0
  6. data/lib/crowbar/client/app/backup.rb +62 -1
  7. data/lib/crowbar/client/app/barclamp.rb +10 -0
  8. data/lib/crowbar/client/app/base.rb +50 -0
  9. data/lib/crowbar/client/app/batch.rb +25 -0
  10. data/lib/crowbar/client/app/entry.rb +26 -1
  11. data/lib/crowbar/client/app/host_ip.rb +24 -0
  12. data/lib/crowbar/client/app/installer.rb +16 -1
  13. data/lib/crowbar/client/app/interface.rb +21 -0
  14. data/lib/crowbar/client/app/network.rb +3 -0
  15. data/lib/crowbar/client/app/node.rb +3 -0
  16. data/lib/crowbar/client/app/proposal.rb +3 -0
  17. data/lib/crowbar/client/app/repository.rb +3 -0
  18. data/lib/crowbar/client/app/role.rb +3 -0
  19. data/lib/crowbar/client/app/server.rb +56 -0
  20. data/lib/crowbar/client/app/virtual_ip.rb +24 -0
  21. data/lib/crowbar/client/command.rb +3 -0
  22. data/lib/crowbar/client/command/backup.rb +3 -0
  23. data/lib/crowbar/client/command/backup/create.rb +3 -0
  24. data/lib/crowbar/client/command/backup/delete.rb +3 -0
  25. data/lib/crowbar/client/command/backup/download.rb +3 -0
  26. data/lib/crowbar/client/command/backup/list.rb +3 -0
  27. data/lib/crowbar/client/command/backup/restore.rb +3 -0
  28. data/lib/crowbar/client/command/backup/upload.rb +3 -0
  29. data/lib/crowbar/client/command/barclamp.rb +3 -0
  30. data/lib/crowbar/client/command/barclamp/list.rb +3 -0
  31. data/lib/crowbar/client/command/base.rb +3 -0
  32. data/lib/crowbar/client/command/batch.rb +3 -0
  33. data/lib/crowbar/client/command/batch/build.rb +3 -0
  34. data/lib/crowbar/client/command/batch/export.rb +3 -0
  35. data/lib/crowbar/client/command/host_ip.rb +3 -0
  36. data/lib/crowbar/client/command/host_ip/allocate.rb +3 -0
  37. data/lib/crowbar/client/command/host_ip/deallocate.rb +3 -0
  38. data/lib/crowbar/client/command/installer.rb +3 -0
  39. data/lib/crowbar/client/command/installer/start.rb +3 -0
  40. data/lib/crowbar/client/command/installer/status.rb +3 -0
  41. data/lib/crowbar/client/command/interface.rb +3 -0
  42. data/lib/crowbar/client/command/interface/disable.rb +3 -0
  43. data/lib/crowbar/client/command/interface/enable.rb +3 -0
  44. data/lib/crowbar/client/command/node.rb +3 -0
  45. data/lib/crowbar/client/command/node/allocate.rb +4 -1
  46. data/lib/crowbar/client/command/node/delete.rb +3 -0
  47. data/lib/crowbar/client/command/node/group.rb +3 -0
  48. data/lib/crowbar/client/command/node/hardware.rb +4 -1
  49. data/lib/crowbar/client/command/node/identify.rb +4 -1
  50. data/lib/crowbar/client/command/node/list.rb +3 -0
  51. data/lib/crowbar/client/command/node/powercycle.rb +4 -1
  52. data/lib/crowbar/client/command/node/poweroff.rb +4 -1
  53. data/lib/crowbar/client/command/node/poweron.rb +4 -1
  54. data/lib/crowbar/client/command/node/reboot.rb +4 -1
  55. data/lib/crowbar/client/command/node/reinstall.rb +4 -1
  56. data/lib/crowbar/client/command/node/rename.rb +3 -0
  57. data/lib/crowbar/client/command/node/reset.rb +4 -1
  58. data/lib/crowbar/client/command/node/role.rb +3 -0
  59. data/lib/crowbar/client/command/node/show.rb +3 -0
  60. data/lib/crowbar/client/command/node/shutdown.rb +4 -1
  61. data/lib/crowbar/client/command/node/status.rb +3 -0
  62. data/lib/crowbar/client/command/node/transition.rb +3 -0
  63. data/lib/crowbar/client/command/proposal.rb +3 -0
  64. data/lib/crowbar/client/command/proposal/commit.rb +3 -0
  65. data/lib/crowbar/client/command/proposal/create.rb +3 -0
  66. data/lib/crowbar/client/command/proposal/delete.rb +3 -0
  67. data/lib/crowbar/client/command/proposal/dequeue.rb +3 -0
  68. data/lib/crowbar/client/command/proposal/edit.rb +3 -0
  69. data/lib/crowbar/client/command/proposal/list.rb +3 -0
  70. data/lib/crowbar/client/command/proposal/reset.rb +3 -0
  71. data/lib/crowbar/client/command/proposal/show.rb +3 -0
  72. data/lib/crowbar/client/command/repository.rb +3 -0
  73. data/lib/crowbar/client/command/repository/activate.rb +3 -0
  74. data/lib/crowbar/client/command/repository/activate_all.rb +3 -0
  75. data/lib/crowbar/client/command/repository/deactivate.rb +3 -0
  76. data/lib/crowbar/client/command/repository/deactivate_all.rb +3 -0
  77. data/lib/crowbar/client/command/repository/list.rb +3 -0
  78. data/lib/crowbar/client/command/role.rb +3 -0
  79. data/lib/crowbar/client/command/role/list.rb +3 -0
  80. data/lib/crowbar/client/command/role/show.rb +3 -0
  81. data/lib/crowbar/client/command/server.rb +5 -0
  82. data/lib/crowbar/client/command/server/api.rb +3 -0
  83. data/lib/crowbar/client/command/server/check.rb +75 -0
  84. data/lib/crowbar/client/command/virtual_ip.rb +3 -0
  85. data/lib/crowbar/client/command/virtual_ip/allocate.rb +3 -0
  86. data/lib/crowbar/client/command/virtual_ip/deallocate.rb +3 -0
  87. data/lib/crowbar/client/config.rb +128 -1
  88. data/lib/crowbar/client/filter.rb +3 -0
  89. data/lib/crowbar/client/filter/array.rb +3 -0
  90. data/lib/crowbar/client/filter/base.rb +3 -0
  91. data/lib/crowbar/client/filter/hash.rb +3 -0
  92. data/lib/crowbar/client/filter/subset.rb +3 -0
  93. data/lib/crowbar/client/formatter.rb +3 -0
  94. data/lib/crowbar/client/formatter/array.rb +3 -0
  95. data/lib/crowbar/client/formatter/base.rb +3 -0
  96. data/lib/crowbar/client/formatter/hash.rb +3 -0
  97. data/lib/crowbar/client/formatter/nested.rb +3 -0
  98. data/lib/crowbar/client/mixin.rb +3 -0
  99. data/lib/crowbar/client/mixin/barclamp.rb +3 -0
  100. data/lib/crowbar/client/mixin/filter.rb +3 -0
  101. data/lib/crowbar/client/mixin/format.rb +3 -0
  102. data/lib/crowbar/client/request.rb +3 -0
  103. data/lib/crowbar/client/request/backup.rb +3 -0
  104. data/lib/crowbar/client/request/backup/create.rb +18 -0
  105. data/lib/crowbar/client/request/backup/delete.rb +13 -0
  106. data/lib/crowbar/client/request/backup/download.rb +13 -0
  107. data/lib/crowbar/client/request/backup/list.rb +13 -0
  108. data/lib/crowbar/client/request/backup/restore.rb +13 -0
  109. data/lib/crowbar/client/request/backup/upload.rb +13 -0
  110. data/lib/crowbar/client/request/barclamp.rb +3 -0
  111. data/lib/crowbar/client/request/barclamp/list.rb +13 -0
  112. data/lib/crowbar/client/request/base.rb +42 -11
  113. data/lib/crowbar/client/request/batch.rb +3 -0
  114. data/lib/crowbar/client/request/batch/build.rb +13 -0
  115. data/lib/crowbar/client/request/batch/export.rb +18 -0
  116. data/lib/crowbar/client/request/host_ip.rb +3 -0
  117. data/lib/crowbar/client/request/host_ip/allocate.rb +18 -0
  118. data/lib/crowbar/client/request/host_ip/deallocate.rb +18 -0
  119. data/lib/crowbar/client/request/installer.rb +3 -0
  120. data/lib/crowbar/client/request/installer/start.rb +18 -0
  121. data/lib/crowbar/client/request/installer/status.rb +13 -0
  122. data/lib/crowbar/client/request/interface.rb +3 -0
  123. data/lib/crowbar/client/request/interface/disable.rb +18 -0
  124. data/lib/crowbar/client/request/interface/enable.rb +18 -0
  125. data/lib/crowbar/client/request/node.rb +33 -0
  126. data/lib/crowbar/client/request/node/action.rb +13 -0
  127. data/lib/crowbar/client/request/node/allocate.rb +29 -0
  128. data/lib/crowbar/client/request/node/delete.rb +13 -0
  129. data/lib/crowbar/client/request/node/group.rb +13 -0
  130. data/lib/crowbar/client/request/node/hardware.rb +29 -0
  131. data/lib/crowbar/client/request/node/identify.rb +29 -0
  132. data/lib/crowbar/client/request/node/list.rb +13 -0
  133. data/lib/crowbar/client/request/node/powercycle.rb +29 -0
  134. data/lib/crowbar/client/request/node/poweroff.rb +29 -0
  135. data/lib/crowbar/client/request/node/poweron.rb +29 -0
  136. data/lib/crowbar/client/request/node/reboot.rb +29 -0
  137. data/lib/crowbar/client/request/node/reinstall.rb +29 -0
  138. data/lib/crowbar/client/request/node/rename.rb +18 -0
  139. data/lib/crowbar/client/request/node/reset.rb +29 -0
  140. data/lib/crowbar/client/request/node/role.rb +18 -0
  141. data/lib/crowbar/client/request/node/show.rb +13 -0
  142. data/lib/crowbar/client/request/node/shutdown.rb +29 -0
  143. data/lib/crowbar/client/request/node/status.rb +13 -0
  144. data/lib/crowbar/client/request/node/transition.rb +18 -0
  145. data/lib/crowbar/client/request/party.rb +3 -0
  146. data/lib/crowbar/client/request/proposal.rb +3 -0
  147. data/lib/crowbar/client/request/proposal/commit.rb +13 -0
  148. data/lib/crowbar/client/request/proposal/create.rb +18 -0
  149. data/lib/crowbar/client/request/proposal/delete.rb +13 -0
  150. data/lib/crowbar/client/request/proposal/dequeue.rb +13 -0
  151. data/lib/crowbar/client/request/proposal/edit.rb +18 -0
  152. data/lib/crowbar/client/request/proposal/list.rb +13 -0
  153. data/lib/crowbar/client/request/proposal/reset.rb +13 -0
  154. data/lib/crowbar/client/request/proposal/show.rb +13 -0
  155. data/lib/crowbar/client/request/proposal/template.rb +13 -0
  156. data/lib/crowbar/client/request/repository.rb +3 -0
  157. data/lib/crowbar/client/request/repository/activate.rb +18 -0
  158. data/lib/crowbar/client/request/repository/activate_all.rb +13 -0
  159. data/lib/crowbar/client/request/repository/deactivate.rb +18 -0
  160. data/lib/crowbar/client/request/repository/deactivate_all.rb +13 -0
  161. data/lib/crowbar/client/request/repository/list.rb +13 -0
  162. data/lib/crowbar/client/request/role.rb +3 -0
  163. data/lib/crowbar/client/request/role/list.rb +13 -0
  164. data/lib/crowbar/client/request/role/show.rb +13 -0
  165. data/lib/crowbar/client/request/server.rb +5 -0
  166. data/lib/crowbar/client/request/server/api.rb +13 -0
  167. data/lib/crowbar/client/request/server/check.rb +49 -0
  168. data/lib/crowbar/client/request/virtual_ip.rb +3 -0
  169. data/lib/crowbar/client/request/virtual_ip/allocate.rb +18 -0
  170. data/lib/crowbar/client/request/virtual_ip/deallocate.rb +18 -0
  171. data/lib/crowbar/client/util.rb +3 -0
  172. data/lib/crowbar/client/util/editor.rb +3 -0
  173. data/lib/crowbar/client/util/runner.rb +3 -0
  174. data/lib/crowbar/client/version.rb +23 -1
  175. data/spec/crowbar/client/command/backup/create_spec.rb +8 -16
  176. data/spec/crowbar/client/command/backup/delete_spec.rb +8 -16
  177. data/spec/crowbar/client/command/backup/download_spec.rb +8 -16
  178. data/spec/crowbar/client/command/backup/list_spec.rb +7 -15
  179. data/spec/crowbar/client/command/backup/restore_spec.rb +8 -16
  180. data/spec/crowbar/client/command/backup/upload_spec.rb +11 -19
  181. data/spec/crowbar/client/command/barclamp/list_spec.rb +7 -15
  182. data/spec/crowbar/client/command/batch/build_spec.rb +11 -19
  183. data/spec/crowbar/client/command/batch/export_spec.rb +7 -15
  184. data/spec/crowbar/client/command/host_ip/allocate_spec.rb +7 -15
  185. data/spec/crowbar/client/command/host_ip/deallocate_spec.rb +7 -15
  186. data/spec/crowbar/client/command/installer/start_spec.rb +8 -16
  187. data/spec/crowbar/client/command/installer/status_spec.rb +7 -15
  188. data/spec/crowbar/client/command/interface/disable_spec.rb +7 -15
  189. data/spec/crowbar/client/command/interface/enable_spec.rb +7 -15
  190. data/spec/crowbar/client/command/node/allocate_spec.rb +7 -15
  191. data/spec/crowbar/client/command/node/delete_spec.rb +7 -15
  192. data/spec/crowbar/client/command/node/group_spec.rb +7 -15
  193. data/spec/crowbar/client/command/node/hardware_spec.rb +7 -15
  194. data/spec/crowbar/client/command/node/identify_spec.rb +7 -15
  195. data/spec/crowbar/client/command/node/list_spec.rb +9 -17
  196. data/spec/crowbar/client/command/node/powercycle_spec.rb +7 -15
  197. data/spec/crowbar/client/command/node/poweroff_spec.rb +7 -15
  198. data/spec/crowbar/client/command/node/poweron_spec.rb +7 -15
  199. data/spec/crowbar/client/command/node/reboot_spec.rb +7 -15
  200. data/spec/crowbar/client/command/node/reinstall_spec.rb +7 -15
  201. data/spec/crowbar/client/command/node/rename_spec.rb +7 -15
  202. data/spec/crowbar/client/command/node/reset_spec.rb +7 -15
  203. data/spec/crowbar/client/command/node/role_spec.rb +7 -15
  204. data/spec/crowbar/client/command/node/show_spec.rb +7 -15
  205. data/spec/crowbar/client/command/node/shutdown_spec.rb +7 -15
  206. data/spec/crowbar/client/command/node/status_spec.rb +7 -15
  207. data/spec/crowbar/client/command/node/transition_spec.rb +7 -15
  208. data/spec/crowbar/client/command/proposal/commit_spec.rb +7 -15
  209. data/spec/crowbar/client/command/proposal/delete_spec.rb +7 -15
  210. data/spec/crowbar/client/command/proposal/dequeue_spec.rb +7 -15
  211. data/spec/crowbar/client/command/proposal/list_spec.rb +7 -15
  212. data/spec/crowbar/client/command/proposal/reset_spec.rb +7 -15
  213. data/spec/crowbar/client/command/proposal/show_spec.rb +7 -15
  214. data/spec/crowbar/client/command/repository/activate_all_spec.rb +7 -15
  215. data/spec/crowbar/client/command/repository/activate_spec.rb +7 -15
  216. data/spec/crowbar/client/command/repository/deactivate_all_spec.rb +7 -15
  217. data/spec/crowbar/client/command/repository/deactivate_spec.rb +7 -15
  218. data/spec/crowbar/client/command/repository/list_spec.rb +7 -15
  219. data/spec/crowbar/client/command/role/list_spec.rb +7 -15
  220. data/spec/crowbar/client/command/role/show_spec.rb +7 -15
  221. data/spec/crowbar/client/command/server/api_spec.rb +7 -15
  222. data/spec/crowbar/client/command/server/check_spec.rb +31 -0
  223. data/spec/crowbar/client/command/virtual_ip/allocate_spec.rb +7 -15
  224. data/spec/crowbar/client/command/virtual_ip/deallocate_spec.rb +7 -15
  225. data/spec/crowbar/client/request/server/check_spec.rb +50 -0
  226. data/spec/support/command_examples.rb +59 -0
  227. metadata +117 -95
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Barclamp
21
+ #
22
+ # Implementation for the barclamp list command
23
+ #
21
24
  class List < Base
22
25
  include Mixin::Format
23
26
  include Mixin::Filter
@@ -20,6 +20,9 @@ require "active_support/number_helper"
20
20
  module Crowbar
21
21
  module Client
22
22
  module Command
23
+ #
24
+ # Base that provides methods shared between command implementations
25
+ #
23
26
  class Base
24
27
  include ActiveSupport::NumberHelper
25
28
 
@@ -17,6 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  module Command
20
+ #
21
+ # Module for the batch command implementations
22
+ #
20
23
  module Batch
21
24
  autoload :Build,
22
25
  File.expand_path("../batch/build", __FILE__)
@@ -20,6 +20,9 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Batch
23
+ #
24
+ # Implementation for the batch build command
25
+ #
23
26
  class Build < Base
24
27
  def request
25
28
  args.easy_merge!(
@@ -21,6 +21,9 @@ module Crowbar
21
21
  module Client
22
22
  module Command
23
23
  module Batch
24
+ #
25
+ # Implementation for the batch export command
26
+ #
24
27
  class Export < Base
25
28
  def request
26
29
  args.easy_merge!(
@@ -17,6 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  module Command
20
+ #
21
+ # Module for the host IP command implementations
22
+ #
20
23
  module HostIP
21
24
  autoload :Allocate,
22
25
  File.expand_path("../host_ip/allocate", __FILE__)
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module HostIP
21
+ #
22
+ # Implementation for the host IP allocate command
23
+ #
21
24
  class Allocate < Base
22
25
  def request
23
26
  @request ||= Request::HostIP::Allocate.new(
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module HostIP
21
+ #
22
+ # Implementation for the host IP deallocate command
23
+ #
21
24
  class Deallocate < Base
22
25
  def request
23
26
  @request ||= Request::HostIP::Deallocate.new(
@@ -17,6 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  module Command
20
+ #
21
+ # Module for the installer command implementations
22
+ #
20
23
  module Installer
21
24
  autoload :Status,
22
25
  File.expand_path("../installer/status", __FILE__)
@@ -20,6 +20,9 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Installer
23
+ #
24
+ # Implementation for the installer start command
25
+ #
23
26
  class Start < Base
24
27
  def request
25
28
  @request ||= Request::Installer::Start.new(
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Installer
21
+ #
22
+ # Implementation for the installer status command
23
+ #
21
24
  class Status < Base
22
25
  include Mixin::Format
23
26
  include Mixin::Filter
@@ -17,6 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  module Command
20
+ #
21
+ # Module for the interface command implementations
22
+ #
20
23
  module Interface
21
24
  autoload :Disable,
22
25
  File.expand_path("../interface/disable", __FILE__)
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Interface
21
+ #
22
+ # Implementation for the interface disable command
23
+ #
21
24
  class Disable < Base
22
25
  def request
23
26
  @request ||= Request::Interface::Disable.new(
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Interface
21
+ #
22
+ # Implementation for the interface enable command
23
+ #
21
24
  class Enable < Base
22
25
  def request
23
26
  @request ||= Request::Interface::Enable.new(
@@ -17,6 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  module Command
20
+ #
21
+ # Module for the node command implementations
22
+ #
20
23
  module Node
21
24
  autoload :Allocate,
22
25
  File.expand_path("../node/allocate", __FILE__)
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node allocate command
25
+ #
23
26
  class Allocate < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Allocate.new(
26
29
  args.easy_merge(
27
30
  action: :allocate
28
31
  )
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node delete command
23
+ #
21
24
  class Delete < Base
22
25
  def request
23
26
  @request ||= Request::Node::Delete.new(
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node group command
23
+ #
21
24
  class Group < Base
22
25
  def request
23
26
  @request ||= Request::Node::Group.new(
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node hardware command
25
+ #
23
26
  class Hardware < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Hardware.new(
26
29
  args.easy_merge(
27
30
  action: :update
28
31
  )
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node identify command
25
+ #
23
26
  class Identify < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Identify.new(
26
29
  args.easy_merge(
27
30
  action: :identify
28
31
  )
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node list command
23
+ #
21
24
  class List < Base
22
25
  include Mixin::Format
23
26
  include Mixin::Filter
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node powercycle command
25
+ #
23
26
  class Powercycle < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Powercycle.new(
26
29
  args.easy_merge(
27
30
  action: :powercycle
28
31
  )
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node poweroff command
25
+ #
23
26
  class Poweroff < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Poweroff.new(
26
29
  args.easy_merge(
27
30
  action: :poweroff
28
31
  )
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node poweron command
25
+ #
23
26
  class Poweron < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Poweron.new(
26
29
  args.easy_merge(
27
30
  action: :poweron
28
31
  )
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node reboot command
25
+ #
23
26
  class Reboot < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Reboot.new(
26
29
  args.easy_merge(
27
30
  action: :reboot
28
31
  )
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node reinstall command
25
+ #
23
26
  class Reinstall < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Reinstall.new(
26
29
  args.easy_merge(
27
30
  action: :reinstall
28
31
  )
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node rename command
23
+ #
21
24
  class Rename < Base
22
25
  def request
23
26
  @request ||= Request::Node::Rename.new(
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node reset command
25
+ #
23
26
  class Reset < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Reset.new(
26
29
  args.easy_merge(
27
30
  action: :shutdown
28
31
  )
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node role command
23
+ #
21
24
  class Role < Base
22
25
  def request
23
26
  @request ||= Request::Node::Role.new(
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node show command
23
+ #
21
24
  class Show < Base
22
25
  include Mixin::Format
23
26
  include Mixin::Filter
@@ -20,9 +20,12 @@ module Crowbar
20
20
  module Client
21
21
  module Command
22
22
  module Node
23
+ #
24
+ # Implementation for the node shutdown command
25
+ #
23
26
  class Shutdown < Base
24
27
  def request
25
- @request ||= Request::Node::Action.new(
28
+ @request ||= Request::Node::Shutdown.new(
26
29
  args.easy_merge(
27
30
  action: :shutdown
28
31
  )
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node status command
23
+ #
21
24
  class Status < Base
22
25
  include Mixin::Format
23
26
  include Mixin::Filter
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Node
21
+ #
22
+ # Implementation for the node transition command
23
+ #
21
24
  class Transition < Base
22
25
  def request
23
26
  @request ||= Request::Node::Transition.new(
@@ -17,6 +17,9 @@
17
17
  module Crowbar
18
18
  module Client
19
19
  module Command
20
+ #
21
+ # Module for the proposal command implementations
22
+ #
20
23
  module Proposal
21
24
  autoload :Commit,
22
25
  File.expand_path("../proposal/commit", __FILE__)
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Proposal
21
+ #
22
+ # Implementation for the proposal commit command
23
+ #
21
24
  class Commit < Base
22
25
  include Mixin::Barclamp
23
26
 
@@ -21,6 +21,9 @@ module Crowbar
21
21
  module Client
22
22
  module Command
23
23
  module Proposal
24
+ #
25
+ # Implementation for the proposal create command
26
+ #
24
27
  class Create < Base
25
28
  include Mixin::Barclamp
26
29
 
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Proposal
21
+ #
22
+ # Implementation for the proposal delete command
23
+ #
21
24
  class Delete < Base
22
25
  include Mixin::Barclamp
23
26
 
@@ -18,6 +18,9 @@ module Crowbar
18
18
  module Client
19
19
  module Command
20
20
  module Proposal
21
+ #
22
+ # Implementation for the proposal dequeue command
23
+ #
21
24
  class Dequeue < Base
22
25
  include Mixin::Barclamp
23
26