abide_dev_utils 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +0 -0
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.rubocop_todo.yml +0 -0
- data/CHANGELOG.md +0 -0
- data/Dockerfile +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/abide_dev_utils.gemspec +0 -0
- data/lib/abide_dev_utils.rb +0 -0
- data/lib/abide_dev_utils/cli.rb +0 -0
- data/lib/abide_dev_utils/cli/abstract.rb +0 -0
- data/lib/abide_dev_utils/cli/jira.rb +0 -0
- data/lib/abide_dev_utils/cli/puppet.rb +0 -0
- data/lib/abide_dev_utils/cli/test.rb +0 -0
- data/lib/abide_dev_utils/cli/xccdf.rb +7 -4
- data/lib/abide_dev_utils/config.rb +0 -0
- data/lib/abide_dev_utils/constants.rb +0 -0
- data/lib/abide_dev_utils/errors.rb +0 -0
- data/lib/abide_dev_utils/errors/base.rb +0 -0
- data/lib/abide_dev_utils/errors/general.rb +0 -0
- data/lib/abide_dev_utils/errors/jira.rb +0 -0
- data/lib/abide_dev_utils/errors/ppt.rb +0 -0
- data/lib/abide_dev_utils/errors/xccdf.rb +0 -0
- data/lib/abide_dev_utils/files.rb +0 -0
- data/lib/abide_dev_utils/jira.rb +0 -0
- data/lib/abide_dev_utils/output.rb +0 -0
- data/lib/abide_dev_utils/ppt.rb +0 -0
- data/lib/abide_dev_utils/ppt/coverage.rb +0 -0
- data/lib/abide_dev_utils/ppt/new_obj.rb +0 -0
- data/lib/abide_dev_utils/prompt.rb +0 -0
- data/lib/abide_dev_utils/resources/generic_spec.erb +0 -0
- data/lib/abide_dev_utils/utils/general.rb +0 -0
- data/lib/abide_dev_utils/validate.rb +0 -0
- data/lib/abide_dev_utils/version.rb +1 -1
- data/lib/abide_dev_utils/xccdf.rb +1 -1
- data/lib/abide_dev_utils/xccdf/cis.rb +0 -0
- data/lib/abide_dev_utils/xccdf/cis/hiera.rb +0 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd985f39afeac37bf8f2305dc65c782f34722f95a655249d7219b975952012f
|
4
|
+
data.tar.gz: 9123b33054f39149ba2deb34464b56bcac404438ac161f64a02e93fc1d33b340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 595556633f91088d8b34ac1d17d5f012c9d84ca7c03d45ef31bd59ccc45278b008f967b5e096909fa625c8eac7911163584ac7d0d4cc46caa1bd062b14eb1f7c
|
7
|
+
data.tar.gz: 0dc612075817afeae37820a7c2d097a29af5ed3ee491b7ab2c61743e209b0345e5fd5fff6f5aab53b3d85b9f0e5b9c07cf16cefff5092ec981c679523fd141e2
|
data/.dockerignore
CHANGED
File without changes
|
data/.gitignore
CHANGED
File without changes
|
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.rubocop_todo.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
File without changes
|
data/Dockerfile
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/abide_dev_utils.gemspec
CHANGED
File without changes
|
data/lib/abide_dev_utils.rb
CHANGED
File without changes
|
data/lib/abide_dev_utils/cli.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -27,8 +27,12 @@ module Abide
|
|
27
27
|
long_desc(CMD_LONG)
|
28
28
|
options.on('-b [TYPE]', '--benchmark-type [TYPE]', 'XCCDF Benchmark type') { |b| @data[:type] = b }
|
29
29
|
options.on('-o [FILE]', '--out-file [FILE]', 'Path to save file') { |f| @data[:file] = f }
|
30
|
-
options.on('-p [PREFIX]', '--parent-key-prefix [PREFIX]', 'A prefix to append to the parent key')
|
31
|
-
|
30
|
+
options.on('-p [PREFIX]', '--parent-key-prefix [PREFIX]', 'A prefix to append to the parent key') do |p|
|
31
|
+
@data[:parent_key_prefix] = p
|
32
|
+
end
|
33
|
+
options.on('-N', '--number-fmt', 'Format Hiera control names based off of control number instead of name.') do
|
34
|
+
@data[:num] = true
|
35
|
+
end
|
32
36
|
end
|
33
37
|
|
34
38
|
def execute(xccdf_file)
|
@@ -41,8 +45,7 @@ module Abide
|
|
41
45
|
|
42
46
|
def to_hiera(xccdf_file)
|
43
47
|
xfile = AbideDevUtils::XCCDF.to_hiera(xccdf_file, @data)
|
44
|
-
console
|
45
|
-
Abide::CLI::OUTPUT.yaml(xfile, console: console, file: @data[:file])
|
48
|
+
Abide::CLI::OUTPUT.yaml(xfile, console: @data[:file].nil?, file: @data[:file])
|
46
49
|
end
|
47
50
|
end
|
48
51
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/abide_dev_utils/jira.rb
CHANGED
File without changes
|
File without changes
|
data/lib/abide_dev_utils/ppt.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -15,7 +15,7 @@ module AbideDevUtils
|
|
15
15
|
type = opts.fetch(:type, 'cis')
|
16
16
|
case type.downcase
|
17
17
|
when 'cis'
|
18
|
-
AbideDevUtils::XCCDF::CIS::Hiera.new(xccdf_file, parent_key_prefix: opts[:parent_key_prefix],
|
18
|
+
AbideDevUtils::XCCDF::CIS::Hiera.new(xccdf_file, parent_key_prefix: opts[:parent_key_prefix], num: opts[:num])
|
19
19
|
else
|
20
20
|
AbideDevUtils::Output.simple("XCCDF type #{type} is unsupported!")
|
21
21
|
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abide_dev_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heston Snodgrass
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-04-27 00:00:00.000000000 Z
|
@@ -308,7 +308,7 @@ metadata:
|
|
308
308
|
homepage_uri: https://github.com/hsnodgrass/abide_dev_utils
|
309
309
|
source_code_uri: https://github.com/hsnodgrass/abide_dev_utils
|
310
310
|
changelog_uri: https://github.com/hsnodgrass/abide_dev_utils
|
311
|
-
post_install_message:
|
311
|
+
post_install_message:
|
312
312
|
rdoc_options: []
|
313
313
|
require_paths:
|
314
314
|
- lib
|
@@ -323,8 +323,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
323
|
- !ruby/object:Gem::Version
|
324
324
|
version: '0'
|
325
325
|
requirements: []
|
326
|
-
rubygems_version: 3.
|
327
|
-
signing_key:
|
326
|
+
rubygems_version: 3.0.9
|
327
|
+
signing_key:
|
328
328
|
specification_version: 4
|
329
329
|
summary: Helper utilities for developing Abide
|
330
330
|
test_files: []
|