module HammerCLIKatello::HostCollection::HostCollectionUpdateHostsErrorHandler

Public Instance Methods

execute() click to toggle source
# File lib/hammer_cli_katello/host_collection.rb, line 13
def execute
  response = send_request
  if response['error'].any?
    print_message(failure_message)
    puts response['error'].join("\n")
    HammerCLI::EX_CANTCREAT
  else
    print_data(response)
    HammerCLI::EX_OK
  end
end