Class: HammerCLIKatello::ContentExport::GenerateMetadataCommand
- Inherits:
-
HammerCLIKatello::Command
- Object
- HammerCLIForeman::Command
- HammerCLIKatello::Command
- HammerCLIKatello::ContentExport::GenerateMetadataCommand
- Includes:
- HammerCLIKatello::ContentExportHelper
- Defined in:
- lib/hammer_cli_katello/content_export.rb
Instance Method Summary collapse
Methods included from HammerCLIKatello::ContentExportHelper
#check_export_history_syncable!, #emit_async_info, #fetch_export_history, #fetch_export_history_from_task, #fetch_repositories, #generate_metadata_json, included, #make_listing_files, #reload_task, #repository_command?, #send_request, setup_library, setup_repository, setup_version, setup_version_options, #syncable?, #version_command?, #warn_unexportable_repositories
Methods included from ApipieHelper
#call, #destroy, #index, #show, #update
Methods included from ResolverCommons
Instance Method Details
#execute ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# 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 (export_history) HammerCLI::EX_OK end |