hammer_cli_foreman_openscap 0.1.7 → 0.1.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897c97b3c9914d7020ad25e8f8184a45ca150b04
|
4
|
+
data.tar.gz: ccecac1ec87de1f4256cd3c2304efab756bb909c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85d8b7f9aa3f38279c83b40829919030b29db88c5e8cd4cfc2fa7397364b78ddbbf7835c678b94d84039dec1595f68b16c937b3e1074063e5138360c520e79ea
|
7
|
+
data.tar.gz: e6d0c63fb5994b660010766c45f697a46b846188a66217a1a34b77125315a318e76402a4f76fbefc49d6edbf555ed3d8634b8f1489699516536c0373b8178620
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'hammer_cli_foreman'
|
2
|
+
require 'hammer_cli_foreman/host'
|
2
3
|
require 'hammer_cli_foreman_openscap/options/normalizers'
|
3
4
|
require 'hammer_cli_foreman_openscap/id_resolver'
|
4
5
|
require 'hammer_cli_foreman_openscap/commands'
|
@@ -29,4 +30,8 @@ module HammerCLIForemanOpenscap
|
|
29
30
|
HammerCLI::MainCommand.lazy_subcommand("tailoring-file", _("Manipulate Tailoring files"),
|
30
31
|
"HammerCLIForemanOpenscap::TailoringFile",
|
31
32
|
"hammer_cli_foreman_openscap/tailoring_file")
|
33
|
+
|
34
|
+
HammerCLIForeman::Host.lazy_subcommand(Host::PoliciesEnc.command_name, _('View policies ENC for host'),
|
35
|
+
"HammerCLIForemanOpenscap::Host::PoliciesEnc",
|
36
|
+
"hammer_cli_foreman_openscap/host")
|
32
37
|
end
|
@@ -1,2 +1,34 @@
|
|
1
1
|
require 'hammer_cli_foreman/host'
|
2
2
|
require 'hammer_cli_foreman_openscap/host_extensions'
|
3
|
+
|
4
|
+
module HammerCLIForemanOpenscap
|
5
|
+
class Host < HammerCLIForeman::Command
|
6
|
+
resource :hosts
|
7
|
+
|
8
|
+
class PoliciesEnc < HammerCLIForeman::ListCommand
|
9
|
+
command_name "policies-enc"
|
10
|
+
action :policies_enc
|
11
|
+
|
12
|
+
output do
|
13
|
+
field :id, _('Id')
|
14
|
+
field :profile_id, _('Profile Id')
|
15
|
+
field :content_path, _('Content path')
|
16
|
+
field :download_path, _('Content download path')
|
17
|
+
field :tailoring_path, _('Tailoring path')
|
18
|
+
field :tailoring_download_path, _('Tailoring download path')
|
19
|
+
field :monthday, _('Day of month')
|
20
|
+
field :hour, _('Hour')
|
21
|
+
field :minute, ('Minute')
|
22
|
+
field :month, _('Month')
|
23
|
+
field :week, _('Week')
|
24
|
+
end
|
25
|
+
|
26
|
+
def adapter
|
27
|
+
@context[:adapter] || :base
|
28
|
+
end
|
29
|
+
|
30
|
+
build_options
|
31
|
+
end
|
32
|
+
autoload_subcommands
|
33
|
+
end
|
34
|
+
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.
|
4
|
+
version: 0.1.8
|
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: 2019-
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|
@@ -96,22 +96,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.6.
|
99
|
+
rubygems_version: 2.6.14
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Foreman OpenSCAP commands for Hammer
|
103
103
|
test_files:
|
104
|
-
- test/
|
105
|
-
- test/unit/tailoring_file_test.rb
|
106
|
-
- test/unit/test_helper.rb
|
107
|
-
- test/unit/policy_test.rb
|
108
|
-
- test/unit/arf_report_test.rb
|
109
|
-
- test/test_helper.rb
|
110
|
-
- test/functional/scap_content_test.rb
|
111
|
-
- test/functional/tailoring_file_test.rb
|
112
|
-
- test/functional/test_helper.rb
|
113
|
-
- test/data/1.14/foreman_api.json
|
104
|
+
- test/compliance_resource_mock.rb
|
114
105
|
- test/data/1.11/foreman_api.json
|
106
|
+
- test/data/1.14/foreman_api.json
|
115
107
|
- test/data/1.15/foreman_api.json
|
116
108
|
- test/data/tailoring.xml
|
117
|
-
- test/
|
109
|
+
- test/functional/scap_content_test.rb
|
110
|
+
- test/functional/tailoring_file_test.rb
|
111
|
+
- test/functional/test_helper.rb
|
112
|
+
- test/test_helper.rb
|
113
|
+
- test/unit/arf_report_test.rb
|
114
|
+
- test/unit/policy_test.rb
|
115
|
+
- test/unit/scap_content_test.rb
|
116
|
+
- test/unit/tailoring_file_test.rb
|
117
|
+
- test/unit/test_helper.rb
|