hammer_cli_foreman_openscap 0.1.9 → 0.1.10

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: 678b37b57981936274fec62371d7f0b29e087bd4675e78f2ac80673e4291efb1
4
- data.tar.gz: 7951dae03743b2ca635500e61fe7d6197995050f06085ea993cc41c0959e4c8a
3
+ metadata.gz: 7ab260d88e51746eb14047d3cf9512077e59ffbb2e089f96bec41989544bd3d8
4
+ data.tar.gz: 477cdbbc47ad5d1b2798433aba7092811164a41f76174137a78e1a00d882ccc3
5
5
  SHA512:
6
- metadata.gz: 605ff8f09fee4a99649fc1ab3354c1827697334b9bb5b3f80c9fbc491974b0e1be0672f85ae746db0ec5d9fe5e68bd543c5446ef8903c39f872b87d7a9e9ad8c
7
- data.tar.gz: d2c0b22b4e4f79d229afaee49f30d0378f9ca71169a3414472da1d7db1a23cc36371dee3c073567e1b44ec640ba9a5603995ab624d43e16bcd58ad8e93ff83f1
6
+ metadata.gz: 4ec48888a5125abd6ab473f01e0e03da359cde9f5e25aaaa6de957e03bf7adc4ac59f5623594810392845b95ee304eed8aaf1487b94fc42c3ed8b90831579acb
7
+ data.tar.gz: bba6c3cc5bb7caf9ae351b3144159085deeb5a9f6e0fdb82d0aa887ce7765948b0099a2ce1d9b364d76a13da2a6a3402de6181e592f54e467bf0e608affa6b0f
@@ -7,6 +7,7 @@ require 'hammer_cli_foreman_openscap/error'
7
7
  require 'hammer_cli_foreman_openscap/exception_handler'
8
8
  require 'hammer_cli_foreman_openscap/hostgroup'
9
9
  require 'hammer_cli_foreman_openscap/host'
10
+ require 'hammer_cli_foreman_openscap/scap_content_profile'
10
11
 
11
12
  module HammerCLIForemanOpenscap
12
13
  require 'hammer_cli_foreman_openscap/version'
@@ -31,6 +32,10 @@ module HammerCLIForemanOpenscap
31
32
  "HammerCLIForemanOpenscap::TailoringFile",
32
33
  "hammer_cli_foreman_openscap/tailoring_file")
33
34
 
35
+ HammerCLI::MainCommand.lazy_subcommand("scap-content-profile", _("Manipulate Scap Content Profiles"),
36
+ "HammerCLIForemanOpenscap::ScapContentProfile",
37
+ "hammer_cli_foreman_openscap/scap_content_profile")
38
+
34
39
  HammerCLIForeman::Host.lazy_subcommand(Host::PoliciesEnc.command_name, _('View policies ENC for host'),
35
40
  "HammerCLIForemanOpenscap::Host::PoliciesEnc",
36
41
  "hammer_cli_foreman_openscap/host")
@@ -0,0 +1,29 @@
1
+ module HammerCLIForemanOpenscap
2
+ class ScapContentProfile < HammerCLIForeman::Command
3
+ resource :scap_content_profiles
4
+
5
+ class ListCommand < HammerCLIForeman::ListCommand
6
+ output do
7
+ field :id, _("Id")
8
+ field :title, _("Title")
9
+ field :profile_id, _("Profile Id")
10
+ from :scap_content do
11
+ field :id, _("Scap Content Id")
12
+ field :title, _("Scap Content Title")
13
+ end
14
+ from :tailoring_file do
15
+ field :id, _("Tailoring File Id")
16
+ field :name, _("Tailoring File Name")
17
+ end
18
+ end
19
+
20
+ def adapter
21
+ @context[:adapter] || :base
22
+ end
23
+
24
+ build_options
25
+ end
26
+
27
+ autoload_subcommands
28
+ end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForemanOpenscap
2
2
  def self.version
3
- @version ||= Gem::Version.new '0.1.9'
3
+ @version ||= Gem::Version.new '0.1.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Foreman team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -53,6 +53,7 @@ files:
53
53
  - lib/hammer_cli_foreman_openscap/options/normalizers.rb
54
54
  - lib/hammer_cli_foreman_openscap/policy.rb
55
55
  - lib/hammer_cli_foreman_openscap/scap_content.rb
56
+ - lib/hammer_cli_foreman_openscap/scap_content_profile.rb
56
57
  - lib/hammer_cli_foreman_openscap/tailoring_file.rb
57
58
  - lib/hammer_cli_foreman_openscap/version.rb
58
59
  - locale/Makefile