class HammerCLIKatello::ContentExport::GenerateMetadataCommand
Public Instance Methods
execute()
click to toggle source
# File lib/hammer_cli_katello/content_export.rb, line 28 def execute export_history = if option_task_id export_task = reload_task(option_task_id) fetch_export_history_from_task(export_task) else fetch_export_history(option_export_id) end unless export_history raise _("No export history was found. Verify the value given for "\ + "--task-id or --id") end generate_metadata_json(export_history) HammerCLI::EX_OK end