Module: HammerCLIKatello::HostCollection::HostCollectionUpdateHostsErrorHandler
- Included in:
- AddHostCommand, RemoveHostCommand
- Defined in:
- lib/hammer_cli_katello/host_collection.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/hammer_cli_katello/host_collection.rb', line 13 def execute response = send_request if response['error'].any? () puts response['error'].join("\n") HammerCLI::EX_CANTCREAT else print_data(response) HammerCLI::EX_OK end end |