Class: HammerCLIForemanAnsible::AnsibleRolesCommand::ObsoleteCommand

Inherits:
HammerCLIForeman::Command
  • Object
show all
Defined in:
lib/hammer_cli_foreman_ansible/ansible_roles.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



68
69
70
71
72
73
74
75
76
77
# File 'lib/hammer_cli_foreman_ansible/ansible_roles.rb', line 68

def execute
  response = {}
  response['changed'] = send_request
  response['message'] = _('The following ansible roles were changed')
  if response['changed'].empty?
    response['message'] = _('No changes in ansible roles detected.')
  end
  print_data(response)
  HammerCLI::EX_OK
end