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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +0 -0
  3. data/.gitignore +0 -0
  4. data/.rspec +0 -0
  5. data/.rubocop.yml +0 -0
  6. data/.rubocop_todo.yml +0 -0
  7. data/CHANGELOG.md +0 -0
  8. data/Dockerfile +0 -0
  9. data/Gemfile +0 -0
  10. data/LICENSE.txt +0 -0
  11. data/README.md +0 -0
  12. data/Rakefile +0 -0
  13. data/abide_dev_utils.gemspec +0 -0
  14. data/lib/abide_dev_utils.rb +0 -0
  15. data/lib/abide_dev_utils/cli.rb +0 -0
  16. data/lib/abide_dev_utils/cli/abstract.rb +0 -0
  17. data/lib/abide_dev_utils/cli/jira.rb +0 -0
  18. data/lib/abide_dev_utils/cli/puppet.rb +0 -0
  19. data/lib/abide_dev_utils/cli/test.rb +0 -0
  20. data/lib/abide_dev_utils/cli/xccdf.rb +7 -4
  21. data/lib/abide_dev_utils/config.rb +0 -0
  22. data/lib/abide_dev_utils/constants.rb +0 -0
  23. data/lib/abide_dev_utils/errors.rb +0 -0
  24. data/lib/abide_dev_utils/errors/base.rb +0 -0
  25. data/lib/abide_dev_utils/errors/general.rb +0 -0
  26. data/lib/abide_dev_utils/errors/jira.rb +0 -0
  27. data/lib/abide_dev_utils/errors/ppt.rb +0 -0
  28. data/lib/abide_dev_utils/errors/xccdf.rb +0 -0
  29. data/lib/abide_dev_utils/files.rb +0 -0
  30. data/lib/abide_dev_utils/jira.rb +0 -0
  31. data/lib/abide_dev_utils/output.rb +0 -0
  32. data/lib/abide_dev_utils/ppt.rb +0 -0
  33. data/lib/abide_dev_utils/ppt/coverage.rb +0 -0
  34. data/lib/abide_dev_utils/ppt/new_obj.rb +0 -0
  35. data/lib/abide_dev_utils/prompt.rb +0 -0
  36. data/lib/abide_dev_utils/resources/generic_spec.erb +0 -0
  37. data/lib/abide_dev_utils/utils/general.rb +0 -0
  38. data/lib/abide_dev_utils/validate.rb +0 -0
  39. data/lib/abide_dev_utils/version.rb +1 -1
  40. data/lib/abide_dev_utils/xccdf.rb +1 -1
  41. data/lib/abide_dev_utils/xccdf/cis.rb +0 -0
  42. data/lib/abide_dev_utils/xccdf/cis/hiera.rb +0 -0
  43. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e53d77f476f80d886ab35e07bbfcf897f117d24be9fdf6cc3c31fc50b3d40e7
4
- data.tar.gz: 1fc189884a7c351da992f6ad6e915cc0321c290c67b5e10ae3e35fb0bbc26d79
3
+ metadata.gz: ecd985f39afeac37bf8f2305dc65c782f34722f95a655249d7219b975952012f
4
+ data.tar.gz: 9123b33054f39149ba2deb34464b56bcac404438ac161f64a02e93fc1d33b340
5
5
  SHA512:
6
- metadata.gz: 2dedd8ca47872aa859852f51172233ffefca9420004804d750969c0b7558caa10caba812570538c5e4989c021c2a6409620502f7459dfcd5027f9c7afafbb6fe
7
- data.tar.gz: fe3b5f70661297672e171fce5f452c06a9042f2e101918caaf65be0527c5e401e22169bdfde0d1649b1d8ea6ce85c04262c7147c4fd8f0514d81e0bfdb2e860e
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
File without changes
File without changes
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') { |p| @data[:parent_key_prefix] = p }
31
- options.on('-N', '--number-fmt', 'Format Hiera control names based off of control number instead of name.') { |s| @data[:num] = true }
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 = @data[:file].nil? ? true : false
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
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AbideDevUtils
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
@@ -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], strategy: opts[:strategy])
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.0
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.1.2
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: []