Class: HammerCLIForemanTemplates::ExportCommand

Inherits:
HammerCLIForeman::Command
  • Object
show all
Defined in:
lib/hammer_cli_foreman_templates/export.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



21
22
23
24
25
26
# File 'lib/hammer_cli_foreman_templates/export.rb', line 21

def execute
  templates = send_request['templates']
  templates = [] unless option_verbose
  print_data(templates)
  HammerCLI::EX_OK
end