foreman_scap_client 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: 21f51dd9b6750fa170c20b030b67f82f99cbd700
4
- data.tar.gz: f34fffe36704aae72a7864c263ee175c6475bd43
3
+ metadata.gz: 2073070afe372e8217fcaa7892c7d07073e2cf92
4
+ data.tar.gz: 3e81e0aa2a7593a118bf1554273ed5821ef255c3
5
5
  SHA512:
6
- metadata.gz: 4e42d77dfdaed70aa0ff40e59094b64e071134176ae6ecbfad9e32582c218b8ce98a575ff44e45a3a7c450785adbef830ed4646814fcfa99838206a2acfb5ce2
7
- data.tar.gz: 60c4dc73858ddb8e4e7ae8b68fadcba5f5073ccf69124e3ad898f3d56d96ea97e3fa32c8710484f054403eeba0c27aeeef04853908f376e78b20b0540be4e898
6
+ metadata.gz: cafcde674e943c90d62d4f6b96b31d4e312a26d2ac6e841de1c07cc90b438773ecfdc6cd3e92102f527ed9f88cfd435f3e054dd2ad308f8c22440bd3f6f91821
7
+ data.tar.gz: a106ddad87d0a2226118dc01feaa9aa7a0c5f2edd196ac0bc305247b100446f45b4c4e9befd59ece28043997fc4b1b2dcadc623b3e02bfda4bffaf45206bb72d
@@ -45,6 +45,7 @@ module ForemanScapClient
45
45
 
46
46
  def scan
47
47
  puts "DEBUG: running: " + scan_command
48
+ puts "with ENV vars: #{scan_command_env_vars}" unless scan_command_env_vars.empty?
48
49
 
49
50
  if RUBY_VERSION.start_with? '1.8'
50
51
  legacy_run_scan
@@ -56,7 +57,9 @@ module ForemanScapClient
56
57
  def run_scan
57
58
  stdout_str, error_str, result = Open3.capture3(scan_command_env_vars, scan_command)
58
59
  if result.success? || result.exitstatus == 2
59
- puts error_str
60
+ puts error_str.split("\n")
61
+ .select { |item| item.start_with?('WARNING:') || item.start_with?('Downloading') }
62
+ .join("\n")
60
63
  @report = results_path
61
64
  else
62
65
  puts 'Scan failed'
@@ -82,7 +85,8 @@ module ForemanScapClient
82
85
  def scan_command_env_vars
83
86
  if http_proxy_uri
84
87
  {
85
- 'HTTP_PROXY' => http_proxy_uri
88
+ 'HTTP_PROXY' => http_proxy_uri,
89
+ 'HTTPS_PROXY' => http_proxy_uri
86
90
  }
87
91
  else
88
92
  {}
@@ -1,3 +1,3 @@
1
1
  module ForemanScapClient
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_scap_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-03-07 00:00:00.000000000 Z
13
+ date: 2019-03-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler