hammer_cli_katello 0.24.4 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_katello.rb +11 -15
  3. data/lib/hammer_cli_katello/activation_key.rb +5 -5
  4. data/lib/hammer_cli_katello/capsule.rb +2 -3
  5. data/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb +10 -7
  6. data/lib/hammer_cli_katello/command_extensions/lifecycle_environments.rb +11 -8
  7. data/lib/hammer_cli_katello/content_credential.rb +20 -19
  8. data/lib/hammer_cli_katello/content_export.rb +1 -0
  9. data/lib/hammer_cli_katello/content_export_helper.rb +1 -1
  10. data/lib/hammer_cli_katello/content_import.rb +16 -1
  11. data/lib/hammer_cli_katello/content_view.rb +16 -31
  12. data/lib/hammer_cli_katello/content_view_version.rb +4 -273
  13. data/lib/hammer_cli_katello/deb_package.rb +3 -3
  14. data/lib/hammer_cli_katello/docker.rb +13 -0
  15. data/lib/hammer_cli_katello/docker_manifest.rb +53 -0
  16. data/lib/hammer_cli_katello/docker_tag.rb +40 -0
  17. data/lib/hammer_cli_katello/erratum.rb +1 -1
  18. data/lib/hammer_cli_katello/erratum_info_command.rb +1 -1
  19. data/lib/hammer_cli_katello/file.rb +3 -3
  20. data/lib/hammer_cli_katello/filter.rb +2 -2
  21. data/lib/hammer_cli_katello/foreman_search_options_creators.rb +0 -12
  22. data/lib/hammer_cli_katello/host_collection.rb +2 -2
  23. data/lib/hammer_cli_katello/host_collection_erratum.rb +10 -0
  24. data/lib/hammer_cli_katello/host_collection_package.rb +30 -0
  25. data/lib/hammer_cli_katello/host_collection_package_group.rb +30 -0
  26. data/lib/hammer_cli_katello/host_deb.rb +1 -1
  27. data/lib/hammer_cli_katello/host_errata.rb +9 -1
  28. data/lib/hammer_cli_katello/host_extensions.rb +5 -5
  29. data/lib/hammer_cli_katello/host_package.rb +33 -1
  30. data/lib/hammer_cli_katello/host_package_group.rb +16 -0
  31. data/lib/hammer_cli_katello/hostgroup_extensions.rb +4 -4
  32. data/lib/hammer_cli_katello/id_resolver.rb +3 -6
  33. data/lib/hammer_cli_katello/lifecycle_environment.rb +2 -2
  34. data/lib/hammer_cli_katello/module_stream.rb +8 -8
  35. data/lib/hammer_cli_katello/organization.rb +10 -0
  36. data/lib/hammer_cli_katello/organization_options.rb +8 -6
  37. data/lib/hammer_cli_katello/ostree_branch.rb +2 -2
  38. data/lib/hammer_cli_katello/package.rb +5 -5
  39. data/lib/hammer_cli_katello/package_group.rb +4 -4
  40. data/lib/hammer_cli_katello/ping.rb +13 -19
  41. data/lib/hammer_cli_katello/product.rb +3 -3
  42. data/lib/hammer_cli_katello/product_content.rb +2 -2
  43. data/lib/hammer_cli_katello/repository.rb +27 -37
  44. data/lib/hammer_cli_katello/repository_set.rb +4 -4
  45. data/lib/hammer_cli_katello/simple_content_access.rb +42 -0
  46. data/lib/hammer_cli_katello/srpm.rb +2 -2
  47. data/lib/hammer_cli_katello/subscription.rb +2 -3
  48. data/lib/hammer_cli_katello/sync_plan.rb +2 -2
  49. data/lib/hammer_cli_katello/version.rb +1 -1
  50. data/locale/hammer-cli-katello.pot +0 -25
  51. data/test/data/3.18/foreman_api.json +1 -1
  52. data/test/data/3.19/foreman_api.json +1 -0
  53. data/test/data/4.0/foreman_api.json +1 -0
  54. data/test/data/4.1/foreman_api.json +1 -0
  55. data/test/functional/activation_key/subscriptions_test.rb +5 -2
  56. data/test/functional/capsule/content/info_test.rb +1 -2
  57. data/test/functional/content_credentials/create_test.rb +32 -0
  58. data/test/functional/{repository → content_credentials}/data/test_cert.json +0 -0
  59. data/test/functional/content_credentials/list_test.rb +6 -8
  60. data/test/functional/content_export/complete/version_test.rb +35 -0
  61. data/test/functional/content_export/list_test.rb +9 -9
  62. data/test/functional/content_import/list_test.rb +65 -0
  63. data/test/functional/content_import/version_test.rb +6 -6
  64. data/test/functional/content_view/list_test.rb +0 -2
  65. data/test/functional/content_view/publish_test.rb +0 -21
  66. data/test/functional/content_view/version/promote_test.rb +1 -2
  67. data/test/functional/content_view/version/republish_repositories_test.rb +1 -2
  68. data/test/functional/host/errata/apply_test.rb +0 -2
  69. data/test/functional/host/errata/recalculate_test.rb +0 -2
  70. data/test/functional/organization/info_test.rb +22 -0
  71. data/test/functional/ping_test.rb +52 -15
  72. data/test/functional/repository/create_test.rb +0 -30
  73. data/test/functional/repository/info_test.rb +4 -4
  74. data/test/functional/repository/list_test.rb +0 -2
  75. data/test/functional/simple_content_access/disable_test.rb +48 -0
  76. data/test/functional/simple_content_access/enable_test.rb +46 -0
  77. data/test/test_helper.rb +1 -1
  78. metadata +24 -52
  79. data/lib/hammer_cli_katello/content_view_puppet_module.rb +0 -60
  80. data/lib/hammer_cli_katello/cv_import_export_helper.rb +0 -166
  81. data/lib/hammer_cli_katello/gpg_key.rb +0 -67
  82. data/lib/hammer_cli_katello/puppet_module.rb +0 -59
  83. data/test/functional/content_view/puppet_module/add_test.rb +0 -24
  84. data/test/functional/content_view/puppet_module/remove_test.rb +0 -54
  85. data/test/functional/content_view/version/default_export_test.rb +0 -40
  86. data/test/functional/content_view/version/export_test.rb +0 -136
  87. data/test/functional/content_view/version/import_test.rb +0 -318
  88. data/test/functional/gpg_test.rb +0 -39
  89. data/test/functional/repository/data/test_ca.json +0 -43
  90. data/test/functional/repository/data/test_key.json +0 -43
@@ -7,7 +7,7 @@ module HammerCLIKatello
7
7
  include LifecycleEnvironmentNameMapping
8
8
 
9
9
  output do
10
- field :id, _("ID")
10
+ field :id, _("Id")
11
11
  field :filename, _("Filename")
12
12
  end
13
13
 
@@ -43,9 +43,9 @@ module HammerCLIKatello
43
43
 
44
44
  class InfoCommand < HammerCLIKatello::InfoCommand
45
45
  output do
46
- field :id, _("ID")
46
+ field :id, _("Id")
47
47
  field :pulp_id, _("Pulp ID")
48
- field :uuid, _("UUID")
48
+ field :uuid, _("Uuid")
49
49
  field :name, _("Name")
50
50
  field :version, _("Version")
51
51
  field :checksum, _("checksum")
@@ -0,0 +1,13 @@
1
+ module HammerCLIKatello
2
+ class DockerCommand < HammerCLI::AbstractCommand
3
+ require 'hammer_cli_katello/docker_manifest'
4
+ subcommand 'manifest',
5
+ HammerCLIKatello::DockerManifestCommand.desc,
6
+ HammerCLIKatello::DockerManifestCommand
7
+
8
+ require 'hammer_cli_katello/docker_tag'
9
+ subcommand 'tag',
10
+ HammerCLIKatello::DockerTagCommand.desc,
11
+ HammerCLIKatello::DockerTagCommand
12
+ end
13
+ end
@@ -0,0 +1,53 @@
1
+ module HammerCLIKatello
2
+ class DockerManifestCommand < HammerCLIForeman::Command
3
+ resource :docker_manifests
4
+ command_name 'manifest'
5
+ desc _('Manage docker manifests')
6
+
7
+ class ListCommand < HammerCLIKatello::ListCommand
8
+ include HammerCLIKatello::LifecycleEnvironmentNameMapping
9
+
10
+ output do
11
+ field :id, _("ID")
12
+ field :name, _("Name")
13
+ field :schema_version, _("Schema Version")
14
+ field :digest, _("Digest")
15
+ field :downloaded, _("Downloaded"), Fields::Boolean
16
+ field :_tags, _("Tags")
17
+ end
18
+
19
+ def extend_data(manifest)
20
+ manifest['_tags'] = manifest['tags'].map { |e| e["name"] }.join(", ")
21
+ manifest
22
+ end
23
+
24
+ build_options do |o|
25
+ o.expand.including(:products, :organizations, :content_views)
26
+ end
27
+
28
+ extend_with(HammerCLIKatello::CommandExtensions::LifecycleEnvironment.new)
29
+ end
30
+
31
+ class InfoCommand < HammerCLIKatello::InfoCommand
32
+ output do
33
+ field :id, _("ID")
34
+ field :name, _("Name")
35
+ field :schema_version, _("Schema Version")
36
+ field :digest, _("Digest")
37
+ field :downloaded, _("Downloaded"), Fields::Boolean
38
+ collection :tags, _("Tags") do
39
+ field :name, _("Name")
40
+ end
41
+ end
42
+
43
+ def extend_data(manifest)
44
+ manifest['_tags'] = manifest['tags'].map { |e| { name: e["name"] } }.join(", ")
45
+ manifest
46
+ end
47
+
48
+ build_options
49
+ end
50
+
51
+ autoload_subcommands
52
+ end
53
+ end
@@ -0,0 +1,40 @@
1
+ module HammerCLIKatello
2
+ class DockerTagCommand < HammerCLIForeman::Command
3
+ resource :docker_tags
4
+ command_name 'tag'
5
+ desc _('Manage docker tags')
6
+
7
+ class ListCommand < HammerCLIKatello::ListCommand
8
+ include HammerCLIKatello::LifecycleEnvironmentNameMapping
9
+
10
+ output do
11
+ field :id, _("ID")
12
+ field :name, _("Tag")
13
+ field :repository_id, _("Repository ID")
14
+ end
15
+
16
+ build_options do |o|
17
+ o.expand.including(:products, :organizations, :content_views)
18
+ end
19
+
20
+ extend_with(HammerCLIKatello::CommandExtensions::LifecycleEnvironment.new)
21
+ end
22
+
23
+ class InfoCommand < HammerCLIKatello::InfoCommand
24
+ output do
25
+ field :id, _("ID")
26
+ field :name, _("Tag")
27
+ field :repository_id, _("Repository ID")
28
+
29
+ from :manifest do
30
+ field :id, _("Docker Manifest ID")
31
+ field :name, _("Docker Manifest Name")
32
+ end
33
+ end
34
+
35
+ build_options
36
+ end
37
+
38
+ autoload_subcommands
39
+ end
40
+ end
@@ -10,7 +10,7 @@ module HammerCLIKatello
10
10
  validate_repo_name_requires_product_options(:option_repository_name)
11
11
 
12
12
  output do
13
- field :id, _("ID")
13
+ field :id, _("Id")
14
14
  field :errata_id, _("Errata ID")
15
15
  field :type, _("Type")
16
16
  field :title, _("Title")
@@ -7,7 +7,7 @@ module HammerCLIKatello
7
7
  field :version, _("Version")
8
8
  field :description, _("Description")
9
9
  field :status, _("Status")
10
- field :id, _("ID")
10
+ field :id, _("Id")
11
11
  field :errata_id, _("Errata ID")
12
12
  field :reboot_suggested, _("Reboot Suggested")
13
13
  field :updated, _("Updated")
@@ -8,7 +8,7 @@ module HammerCLIKatello
8
8
  validate_repo_name_requires_product_options(:option_repository_name)
9
9
 
10
10
  output do
11
- field :id, _("ID")
11
+ field :id, _("Id")
12
12
  field :name, _("Name")
13
13
  field :path, _("Path")
14
14
  end
@@ -28,10 +28,10 @@ module HammerCLIKatello
28
28
 
29
29
  class InfoCommand < HammerCLIKatello::InfoCommand
30
30
  output do
31
- field :id, _("ID")
31
+ field :id, _("Id")
32
32
  field :name, _("Name")
33
33
  field :path, _("Path")
34
- field :uuid, _("UUID")
34
+ field :uuid, _("Uuid")
35
35
  field :checksum, _("Checksum")
36
36
  end
37
37
 
@@ -34,13 +34,13 @@ module HammerCLIKatello
34
34
  field :description, _("Description")
35
35
 
36
36
  collection :repositories, _("Repositories") do
37
- field :id, _("ID")
37
+ field :id, _("Id")
38
38
  field :name, _("Name")
39
39
  field :label, _("Label")
40
40
  end
41
41
 
42
42
  collection :rules, _("Rules") do
43
- field :id, _("ID")
43
+ field :id, _("Id")
44
44
  field :name, _("Name"), Fields::Field, :hide_blank => true
45
45
  field :version, _("Version"), Fields::Field, :hide_blank => true
46
46
  field :min_version, _("Minimum Version"), Fields::Field, :hide_blank => true
@@ -48,18 +48,6 @@ module HammerCLIKatello
48
48
  create_search_options_without_katello_api(options, api.resource(:ptables), mode)
49
49
  end
50
50
 
51
- def create_puppet_ca_proxies_search_options(options, mode = nil)
52
- create_search_options_without_katello_api(options, api.resource(:puppet_ca_proxies), mode)
53
- end
54
-
55
- def create_puppet_proxies_search_options(options, mode = nil)
56
- create_search_options_without_katello_api(options, api.resource(:puppet_proxies), mode)
57
- end
58
-
59
- def create_puppetclasses_search_options(options, mode = nil)
60
- create_search_options_without_katello_api(options, api.resource(:puppetclasses), mode)
61
- end
62
-
63
51
  def create_subnets_search_options(options, mode = nil)
64
52
  create_search_options_without_katello_api(options, api.resource(:subnets), mode)
65
53
  end
@@ -28,7 +28,7 @@ module HammerCLIKatello
28
28
  resource :host_collections, :index
29
29
 
30
30
  output do
31
- field :id, _("ID")
31
+ field :id, _("Id")
32
32
  field :name, _("Name")
33
33
  field :_limit, _("Limit")
34
34
  field :description, _("Description")
@@ -99,7 +99,7 @@ module HammerCLIKatello
99
99
  end
100
100
 
101
101
  output do
102
- field :id, _("ID")
102
+ field :id, _("Id")
103
103
  field :name, _("Name")
104
104
  from :content_facet_attributes do
105
105
  from :errata_counts do
@@ -15,6 +15,16 @@ module HammerCLIKatello
15
15
  :format => HammerCLI::Options::Normalizers::List.new,
16
16
  :attribute_name => :content)
17
17
 
18
+ def execute
19
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
20
+ "in a future release."
21
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
22
+ "katello_errata_install`. Specify the host collection with the --search-query " \
23
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
24
+ "`--search-query \"host_collection_id=6\"`."
25
+ super
26
+ end
27
+
18
28
  def content_type
19
29
  'errata'
20
30
  end
@@ -23,6 +23,16 @@ module HammerCLIKatello
23
23
  desc _("Install packages on content hosts contained within a host collection")
24
24
  success_message _("Successfully scheduled installation of package(s).")
25
25
  failure_message _("Could not schedule installation of package(s)")
26
+
27
+ def execute
28
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
29
+ "in a future release."
30
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
31
+ "katello_package_install`. Specify the host collection with the --search-query " \
32
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
33
+ "`--search-query \"host_collection_id=6\"`."
34
+ super
35
+ end
26
36
  end
27
37
 
28
38
  class UpdateCommand < HammerCLIKatello::HostCollection::UpdateContentBaseCommand
@@ -30,6 +40,16 @@ module HammerCLIKatello
30
40
  desc _("Update packages on content hosts contained within a host collection")
31
41
  success_message _("Successfully scheduled update of package(s).")
32
42
  failure_message _("Could not schedule update of package(s)")
43
+
44
+ def execute
45
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
46
+ "in a future release."
47
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
48
+ "katello_package_update`. Specify the host collection with the --search-query " \
49
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
50
+ "`--search-query \"host_collection_id=6\"`."
51
+ super
52
+ end
33
53
  end
34
54
 
35
55
  class RemoveCommand < HammerCLIKatello::HostCollection::RemoveContentBaseCommand
@@ -37,6 +57,16 @@ module HammerCLIKatello
37
57
  desc _("Remove packages on content hosts contained within a host collection")
38
58
  success_message _("Successfully scheduled removal of package(s).")
39
59
  failure_message _("Could not schedule removal of package(s)")
60
+
61
+ def execute
62
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
63
+ "in a future release."
64
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
65
+ "katello_package_remove`. Specify the host collection with the --search-query " \
66
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
67
+ "`--search-query \"host_collection_id=6\"`."
68
+ super
69
+ end
40
70
  end
41
71
 
42
72
  autoload_subcommands
@@ -23,6 +23,16 @@ module HammerCLIKatello
23
23
  desc _("Install package-groups on content hosts contained within a host collection")
24
24
  success_message _("Successfully scheduled installation of package-group(s).")
25
25
  failure_message _("Could not schedule installation of package-group(s)")
26
+
27
+ def execute
28
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
29
+ "in a future release."
30
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
31
+ "katello_group_install`. Specify the host collection with the --search-query " \
32
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
33
+ "`--search-query \"host_collection_id=6\"`."
34
+ super
35
+ end
26
36
  end
27
37
 
28
38
  class UpdateCommand < HammerCLIKatello::HostCollection::UpdateContentBaseCommand
@@ -30,6 +40,16 @@ module HammerCLIKatello
30
40
  desc _("Update package-groups on content hosts contained within a host collection")
31
41
  success_message _("Successfully scheduled update of package-groups(s).")
32
42
  failure_message _("Could not schedule update of package-group(s)")
43
+
44
+ def execute
45
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
46
+ "in a future release."
47
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
48
+ "katello_group_update`. Specify the host collection with the --search-query " \
49
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
50
+ "`--search-query \"host_collection_id=6\"`."
51
+ super
52
+ end
33
53
  end
34
54
 
35
55
  class RemoveCommand < HammerCLIKatello::HostCollection::RemoveContentBaseCommand
@@ -37,6 +57,16 @@ module HammerCLIKatello
37
57
  desc _("Remove package-groups on content hosts contained within a host collection")
38
58
  success_message _("Successfully scheduled removal of package-groups(s).")
39
59
  failure_message _("Could not schedule removal of package-group(s)")
60
+
61
+ def execute
62
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
63
+ "in a future release."
64
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
65
+ "katello_group_remove`. Specify the host collection with the --search-query " \
66
+ "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
67
+ "`--search-query \"host_collection_id=6\"`."
68
+ super
69
+ end
40
70
  end
41
71
 
42
72
  autoload_subcommands
@@ -6,7 +6,7 @@ module HammerCLIKatello
6
6
  resource :host_debs, :index
7
7
 
8
8
  output do
9
- field :id, _("ID")
9
+ field :id, _("Id")
10
10
  field :name, _("Name")
11
11
  field :version, _("Version")
12
12
  field :architecture, _("Arch")
@@ -12,6 +12,14 @@ module HammerCLIKatello
12
12
  failure_message _("Could not apply errata")
13
13
 
14
14
  build_options
15
+
16
+ def execute
17
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
18
+ "in a future release."
19
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
20
+ "katello_errata_install`."
21
+ super
22
+ end
15
23
  end
16
24
 
17
25
  class ListCommand < HammerCLIKatello::ListCommand
@@ -21,7 +29,7 @@ module HammerCLIKatello
21
29
  command_name "list"
22
30
 
23
31
  output do
24
- field :id, _("ID")
32
+ field :id, _("Id")
25
33
  field :errata_id, _("Erratum ID")
26
34
  field :type, _("Type")
27
35
  field :title, _("Title")
@@ -41,22 +41,22 @@ module HammerCLIKatello
41
41
  label _('Content Information') do
42
42
  from :content_facet_attributes do
43
43
  label _("Content View") do
44
- field :content_view_id, _("ID")
44
+ field :content_view_id, _("Id")
45
45
  field :content_view_name, _("Name")
46
46
  end
47
47
 
48
48
  label _("Lifecycle Environment") do
49
- field :lifecycle_environment_id, _("ID")
49
+ field :lifecycle_environment_id, _("Id")
50
50
  field :lifecycle_environment_name, _("Name")
51
51
  end
52
52
 
53
53
  label _("Content Source") do
54
- field :content_source_id, _("ID")
54
+ field :content_source_id, _("Id")
55
55
  field :content_source_name, _("Name")
56
56
  end
57
57
 
58
58
  label _("Kickstart Repository") do
59
- field :kickstart_repository_id, _("ID")
59
+ field :kickstart_repository_id, _("Id")
60
60
  field :kickstart_repository_name, _("Name")
61
61
  end
62
62
 
@@ -75,7 +75,7 @@ module HammerCLIKatello
75
75
 
76
76
  label _('Subscription Information') do
77
77
  from :subscription_facet_attributes do
78
- field :uuid, _('UUID')
78
+ field :uuid, _('Uuid')
79
79
  field :last_checkin, _('Last Checkin')
80
80
  field :release_version, _('Release Version')
81
81
  field :autoheal, _('Autoheal')
@@ -6,7 +6,7 @@ module HammerCLIKatello
6
6
  resource :host_packages, :index
7
7
 
8
8
  output do
9
- field :nvra, _("NVRA")
9
+ field :nvra, _("Nvra")
10
10
  end
11
11
 
12
12
  build_options
@@ -24,6 +24,14 @@ module HammerCLIKatello
24
24
  end
25
25
 
26
26
  build_options :without => [:groups]
27
+
28
+ def execute
29
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
30
+ "in a future release."
31
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
32
+ "katello_package_install`."
33
+ super
34
+ end
27
35
  end
28
36
 
29
37
  class UpgradeCommand < HammerCLIKatello::SingleResourceCommand
@@ -34,6 +42,14 @@ module HammerCLIKatello
34
42
  failure_message "Could not upgrade packages"
35
43
 
36
44
  build_options
45
+
46
+ def execute
47
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
48
+ "in a future release."
49
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
50
+ "katello_package_update`."
51
+ super
52
+ end
37
53
  end
38
54
 
39
55
  class UpgradeAllCommand < HammerCLIKatello::SingleResourceCommand
@@ -44,6 +60,14 @@ module HammerCLIKatello
44
60
  failure_message "Could not upgrade all packages"
45
61
 
46
62
  build_options
63
+
64
+ def execute
65
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
66
+ "in a future release."
67
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
68
+ "katello_package_update`."
69
+ super
70
+ end
47
71
  end
48
72
 
49
73
  class RemoveCommand < HammerCLIKatello::SingleResourceCommand
@@ -58,6 +82,14 @@ module HammerCLIKatello
58
82
  end
59
83
 
60
84
  build_options :without => [:groups]
85
+
86
+ def execute
87
+ warn "This command uses katello agent and will be removed in favor of remote execution " \
88
+ "in a future release."
89
+ warn "The remote execution equivalent is `hammer job-invocation create --feature " \
90
+ "katello_package_remove`."
91
+ super
92
+ end
61
93
  end
62
94
 
63
95
  autoload_subcommands