hammer_cli_katello 1.5.3 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d5ff0a9eec365ed64127733829a53befcdef1dc9a6bdeff5d98f986c988170c
4
- data.tar.gz: 150fa12bf6481c901ba50f1b1548a1999d05204bd2049a454eb6e8962a2b5692
3
+ metadata.gz: bfa4a96e3ec666332357da5f6741af1fb78360f60e3016060d8e0ba7a41a38c9
4
+ data.tar.gz: 2d6fafe5ea4d85dd1551f9274a57cc6e2c65e3155bbabd844a0f12d964c3e7d3
5
5
  SHA512:
6
- metadata.gz: 03f7a6238d527555bd4e228eb8779823f3040a3bfcae3302a614e1f4c574a27365f785992f9f92f1117932d3c25b4f68de8181fff7f2e2179379328363f87d64
7
- data.tar.gz: 17fea0c7d58536e7ae2785acb79b04e381d6346ec710c3672315df214388f31e2f43a1005a8e67cc6335253f73910dd0dee15361825d82bf7d65b45b4434804a
6
+ metadata.gz: e3c4c16ed1e4c64d5126810fef1c723490758c1019e820e7cde65f7b6caa663ada32072aa39dcac2964199c5a2a72b2c36f31e4d85dfc64f8b2c9d203154896b
7
+ data.tar.gz: eeefc161d8fb26803fae890ef79d94c74f1e6ca94d4f0780ba839018890fce56bc5405a932cbeee7edbaa5817bec3de0762d39bc0577ee6e647de673c7c6e5fe
@@ -34,14 +34,17 @@ module HammerCLIKatello
34
34
  field nil, _('')
35
35
  end
36
36
 
37
+ collection :products, _('Products') do
38
+ field :id, _('Id')
39
+ field :organization_id, _('Organization ID')
40
+ field :name, _('Name')
41
+ field :label, _('Label')
42
+ end
43
+
37
44
  collection :smart_proxies, _('Smart proxies') do
38
45
  field :id, _('Id')
39
46
  field :name, _('Name')
40
47
  field :url, _('URL')
41
- field :created_at, _('Created at')
42
- field :updated_at, _('Updated at')
43
- field :expired_logs, _('Expired logs')
44
- field :puppet_path, _('Puppet path'), Fields::Field, :hide_blank => true
45
48
  field :download_policy, _('Download policy')
46
49
  end
47
50
  end
@@ -102,6 +102,38 @@ module HammerCLIKatello
102
102
  setup
103
103
  end
104
104
 
105
+ class EnabledRepositoriesCommand < HammerCLIKatello::ListCommand
106
+ resource :host_subscriptions, :enabled_repositories
107
+ command_name 'enabled-repositories'
108
+
109
+ output do
110
+ field :id, _('ID')
111
+ field :name, _('Name')
112
+ field :label, _('Label')
113
+ field :content_type, _('Content type')
114
+ field :checksum, _("Checksum")
115
+
116
+ from :content_view do
117
+ field :id, _('Content View id')
118
+ field :name, _("Content View name")
119
+ end
120
+
121
+ from :content_view_version do
122
+ field :name, _("Content View version")
123
+ end
124
+
125
+ from :kt_environment do
126
+ field :name, _("Environment name")
127
+ end
128
+
129
+ from :product do
130
+ field :name, _("Product name")
131
+ end
132
+ end
133
+
134
+ build_options
135
+ end
136
+
105
137
  class ContentOverrideCommand < ::HammerCLIKatello::ContentOverrideBase::ContentOverrideCommand
106
138
  resource :host_subscriptions, :content_override
107
139
  setup
@@ -13,6 +13,16 @@ module HammerCLIKatello
13
13
  end
14
14
  end
15
15
 
16
+ class StatusCommand < HammerCLIKatello::ListCommand
17
+ resource :simple_content_access, :status
18
+ command_name "status"
19
+ output do
20
+ field :simple_content_access, _('Simple Content Access'), Fields::Boolean
21
+ end
22
+
23
+ build_options
24
+ end
25
+
16
26
  class EnableCommand < HammerCLIKatello::SingleResourceCommand
17
27
  include EligibleCheck
18
28
  include HammerCLIForemanTasks::Async
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('1.5.3')
3
+ @version ||= Gem::Version.new('1.6.0')
4
4
  end
5
5
  end
@@ -43,7 +43,7 @@ module HammerCLIKatello
43
43
  'hammer_cli_katello/organization'
44
44
  )
45
45
 
46
- HammerCLI::MainCommand.lazy_subcommand!("alternate-content-sources", _("Manipulate alternate content sources"), # rubocop:disable LineLength
46
+ HammerCLI::MainCommand.lazy_subcommand!("alternate-content-source", _("Manipulate alternate content sources"), # rubocop:disable LineLength
47
47
  'HammerCLIKatello::AcsCommand',
48
48
  'hammer_cli_katello/acs'
49
49
  )