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, ContentViewPuppetModule::CreateCommand, ContentViewPuppetModule::DeleteCommand, ContentViewPuppetModule::ListCommand, ContentViewPurgeCommand, Filter::CreateCommand, Filter::DeleteCommand, Filter::InfoCommand, Filter::ListCommand, Filter::UpdateCommand, FilterRule::CreateCommand, FilterRule::DeleteCommand, FilterRule::InfoCommand, FilterRule::ListCommand, FilterRule::UpdateCommand, HostSubscription::CreateCommand, Repository::DeleteCommand, Repository::ExportCommand, 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 |
# File 'lib/hammer_cli_katello/organization_options.rb', line 3 def self.included(base) base.option '--organization-id', 'ORGANIZATION_ID', _('Organization ID to search by'), attribute_name: :option_organization_id base.option '--organization', 'ORGANIZATION_NAME', _('Organization name to search by'), attribute_name: :option_organization_name base.option '--organization-label', 'ORGANIZATION_LABEL', _('Organization label to search by'), attribute_name: :option_organization_label end |
Instance Method Details
#org_options ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/hammer_cli_katello/organization_options.rb', line 12 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 |