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, HostErrata::ListCommand, HostSubscription::CreateCommand, Repository::DeleteCommand, Repository::RemoveContentCommand, Repository::UpdateCommand
- 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 |
# 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 end end |
Instance Method Details
#org_options ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/hammer_cli_katello/organization_options.rb', line 14 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"] } end |