nexpose_servicenow 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexpose_servicenow/historical_data.rb +8 -7
- data/lib/nexpose_servicenow/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc997305bf3fce57a42ec43512cf1414cd0d707
|
4
|
+
data.tar.gz: 8f0670ee61cfed74e0f34b874f0df614a5ac7591
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7323ef03ce44edab2f1a4c310a5c466de6f99f415ba4fb1c0be13a46a23665efccb79b0991a27207171cf4ec056c902e04a4b742d6c961dac9997c86651a3282
|
7
|
+
data.tar.gz: c1fad20b61bfc97d7c314b46075ba7b4a526c56522e588c7e97bf3b3c69ed3280a5640a3edc4c536ccd8d7a87faba695816ebd99b8d2a1d7c122faca1c1e13b6
|
@@ -332,7 +332,7 @@ module NexposeServiceNow
|
|
332
332
|
|
333
333
|
def log_and_error(message)
|
334
334
|
$stderr.puts "ERROR: #{message}"
|
335
|
-
@log.
|
335
|
+
@log.log_error_message message unless @log.nil?
|
336
336
|
end
|
337
337
|
|
338
338
|
def set_last_scan(nexpose_id, scan_id)
|
@@ -365,26 +365,26 @@ module NexposeServiceNow
|
|
365
365
|
unless File.exist? filename
|
366
366
|
log_and_error 'Can\'t remove file.'
|
367
367
|
log_and_error "File #{filename} cannot be located."
|
368
|
-
|
368
|
+
return
|
369
369
|
end
|
370
370
|
|
371
371
|
begin
|
372
372
|
self.send("by_#{action}", filename)
|
373
373
|
rescue Exception => e
|
374
374
|
log_and_error "Error removing file:\n#{e}"
|
375
|
-
|
375
|
+
return
|
376
376
|
end
|
377
377
|
|
378
378
|
log_and_print "File #{filename} removed"
|
379
379
|
end
|
380
380
|
|
381
|
-
def
|
382
|
-
new_name = "#{filename}.#{Time.new.strftime('%Y-%m-%
|
381
|
+
def by_rename(filename)
|
382
|
+
new_name = "#{filename}.#{Time.new.strftime('%Y-%m-%d_%H-%M-%S')}"
|
383
383
|
File.delete new_name if File.exist? new_name
|
384
384
|
File.rename(filename, new_name)
|
385
385
|
end
|
386
386
|
|
387
|
-
def
|
387
|
+
def by_delete(filename)
|
388
388
|
File.delete filename
|
389
389
|
end
|
390
390
|
|
@@ -407,4 +407,5 @@ module NexposeServiceNow
|
|
407
407
|
end
|
408
408
|
end
|
409
409
|
end
|
410
|
-
end
|
410
|
+
end
|
411
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexpose_servicenow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Valente
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.5.1
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Gem for Nexpose-ServiceNow integration.
|