Module: HammerCLIKatello::OrganizationOptions
- Included in:
- AssociatingCommands::Repository::AddRepositoryCommand, AssociatingCommands::Repository::RemoveRepositoryCommand, ContentView::AddContentViewVersionCommand, ContentView::CopyCommand, ContentView::DeleteCommand, ContentView::InfoCommand, ContentView::PublishCommand, ContentView::RemoveCommand, ContentView::RemoveContentViewVersionCommand, ContentView::RemoveFromEnvironmentCommand, ContentView::UpdateCommand, ContentViewComponent::ListCommand, ContentViewComponentBase::ComponentCommand, ContentViewPurgeCommand, Filter::CreateCommand, Filter::DeleteCommand, Filter::InfoCommand, Filter::ListCommand, Filter::UpdateCommand, FilterRule::CreateCommand, FilterRule::DeleteCommand, FilterRule::InfoCommand, FilterRule::ListCommand, FilterRule::UpdateCommand, FlatpakRemoteCommand::DeleteCommand, FlatpakRemoteCommand::InfoCommand, FlatpakRemoteCommand::ListCommand, FlatpakRemoteCommand::ScanCommand, FlatpakRemoteCommand::UpdateCommand, HostErrata::ListCommand, HostSubscription::CreateCommand, Repository::DeleteCommand, Repository::ReclaimSpaceCommand, Repository::RemoveContentCommand, Repository::RepublishCommand, Repository::UpdateCommand, Repository::VerifyChecksum
- Defined in:
- lib/hammer_cli_katello/organization_options.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/hammer_cli_katello/organization_options.rb', line 3 def self.included(base) base.option_family do parent '--organization-id', 'ORGANIZATION_ID', _('Organization ID to search by'), attribute_name: :option_organization_id child '--organization', 'ORGANIZATION_NAME', _('Organization name to search by'), attribute_name: :option_organization_name child '--organization-label', 'ORGANIZATION_LABEL', _('Organization label to search by'), attribute_name: :option_organization_label child '--organization-title', 'ORGANIZATION_TITLE', _('Organization title to search by'), attribute_name: :option_organization_title end end |
Instance Method Details
#org_options ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/hammer_cli_katello/organization_options.rb', line 16 def { HammerCLI.option_accessor_name("organization_id") => ["option_organization_id"], HammerCLI.option_accessor_name("organization_name") => ["option_organization_name"], HammerCLI.option_accessor_name("organization_label") => ["option_organization_label"], HammerCLI.option_accessor_name("organization_title") => ["option_organization_title"] } end |