Revision 6f92ac63
Added by Martin Bacovsky almost 4 years ago
lib/hammer_cli_foreman_docker/docker_manifest.rb | ||
---|---|---|
8 | 8 |
desc _('Manage docker manifests') |
9 | 9 |
|
10 | 10 |
class ListCommand < HammerCLIKatello::ListCommand |
11 |
include ::HammerCLIKatello::LifecycleEnvironmentNameResolvable |
|
11 |
include HammerCLIKatello::LifecycleEnvironmentNameMapping |
|
12 |
|
|
12 | 13 |
output do |
13 | 14 |
field :id, _("ID") |
14 | 15 |
field :name, _("Name") |
... | ... | |
26 | 27 |
build_options do |o| |
27 | 28 |
o.expand.including(:products, :organizations, :content_views) |
28 | 29 |
end |
30 |
|
|
31 |
extend_with(HammerCLIKatello::CommandExtensions::LifecycleEnvironment.new) |
|
29 | 32 |
end |
30 | 33 |
|
31 | 34 |
class InfoCommand < HammerCLIKatello::InfoCommand |
lib/hammer_cli_foreman_docker/docker_tag.rb | ||
---|---|---|
8 | 8 |
desc _('Manage docker tags') |
9 | 9 |
|
10 | 10 |
class ListCommand < HammerCLIKatello::ListCommand |
11 |
include ::HammerCLIKatello::LifecycleEnvironmentNameResolvable |
|
11 |
include HammerCLIKatello::LifecycleEnvironmentNameMapping |
|
12 |
|
|
12 | 13 |
output do |
13 | 14 |
field :id, _("ID") |
14 | 15 |
field :name, _("Tag") |
... | ... | |
18 | 19 |
build_options do |o| |
19 | 20 |
o.expand.including(:products, :organizations, :content_views) |
20 | 21 |
end |
22 |
|
|
23 |
extend_with(HammerCLIKatello::CommandExtensions::LifecycleEnvironment.new) |
|
21 | 24 |
end |
22 | 25 |
|
23 | 26 |
class InfoCommand < HammerCLIKatello::InfoCommand |
Also available in: Unified diff
Fixes #27397 - lifecycle environments
Rename --environment options to --lifecycle-environment
to be consistent with rest of the CLI. --environment
is preserved and deprecated.