hammer_cli_katello 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 618adb14fe0c15a13ce8a5a8b40d4cbe1114367ca7dc2e55eed1f65e7fa1b0ae
4
- data.tar.gz: 0e89207f1380c967de8c96b1a962877a9c326288f3dedf1e3cc3cc6c39d5edba
3
+ metadata.gz: 47ec6abf31bfeb6d112458215849f32bd4c7b6e65de1a8949defa5198a19fa0b
4
+ data.tar.gz: '0297ed6182ebb778702d9edd55e0a5545aced2b181128fb041c4bcac2ca2047f'
5
5
  SHA512:
6
- metadata.gz: f74ae331a11fd017d709796c9deae75f06effa2dafcd0b6cd1d389fb0286e29b750170548b3b2f7a94db1b1d7ec3df930e30a87a102328b03b25eb52d60fa3f4
7
- data.tar.gz: e97bb41dac5d20a49e37e558a70fe04f0a7aa8fd286ec2588b591e704c20cfd845c16ee543901a8bfa7320fc0c075b2eba74829082285af01ff2a96acc4132fa
6
+ metadata.gz: b9610d76c8ed234d16c97b90fd006f7ecd72b96833c6414234c6f0fe8d3fd8b9d57a5f22cf88acdea3bb7ebbfe828224204a333d2f059782c5e411fa382ccc7a
7
+ data.tar.gz: 968b2a0654f1806780b0f3e66f394c64294f2a4c6a0196e859293aca54c68b986c0ca71c861ce1b7e58083a387b581e1c4fc5fb4efb8278e76d6e23a88fafd08
@@ -15,6 +15,7 @@ module HammerCLIKatello
15
15
  field :default, _("Default")
16
16
  field :hosts_count, _("Hosts Count")
17
17
  field :activation_keys_count, _("Activation Keys Count")
18
+ field :hostgroups_count, _("Hostgroups Count")
18
19
  from :organization do
19
20
  field :name, _("Organization")
20
21
  end
@@ -23,6 +24,53 @@ module HammerCLIKatello
23
24
  build_options
24
25
  end
25
26
 
27
+ class InfoCommand < HammerCLIKatello::InfoCommand
28
+ action :show
29
+
30
+ output do
31
+ field :id, _("Id")
32
+ field :name, _("Name")
33
+ field :label, _("Label")
34
+ field :default, _("Default"), Fields::Boolean
35
+ field :created_at, _("Created At")
36
+ field :updated_at, _("Updated At")
37
+ from :organization do
38
+ field :id, _("Organization Id")
39
+ field :name, _("Organization")
40
+ field :label, _("Organization Label")
41
+ end
42
+ from :content_view do
43
+ field :id, _("Content View Id")
44
+ field :name, _("Content View")
45
+ field :label, _("Content View Label")
46
+ field :default, _("Default Content View"), Fields::Boolean
47
+ end
48
+ from :lifecycle_environment do
49
+ field :id, _("Lifecycle Environment Id")
50
+ field :name, _("Lifecycle Environment")
51
+ field :label, _("Lifecycle Environment Label")
52
+ field :library, _("Library"), Fields::Boolean
53
+ end
54
+ field :hosts_count, _("Hosts Count")
55
+ field :activation_keys_count, _("Activation Keys Count")
56
+ field :hostgroups_count, _("Hostgroups Count")
57
+
58
+ collection :activation_keys, _("Activation Keys"), :hide_blank => true, :hide_empty => true do
59
+ field :id, _("Id")
60
+ field :name, _("Name")
61
+ field :label, _("Label")
62
+ end
63
+
64
+ collection :hostgroups, _("Hostgroups"), :hide_blank => true, :hide_empty => true do
65
+ field :id, _("Id")
66
+ field :name, _("Name")
67
+ field :title, _("Title")
68
+ end
69
+ end
70
+
71
+ build_options
72
+ end
73
+
26
74
  autoload_subcommands
27
75
  end
28
76
  end
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('5.0.1')
3
+ @version ||= Gem::Version.new('5.0.2')
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price