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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 293f877592c7698b0730bed8471ac8d9557009b3
4
- data.tar.gz: 56922788a7b2b7a399b9146c8075f2cea9d013ad
3
+ metadata.gz: fbc997305bf3fce57a42ec43512cf1414cd0d707
4
+ data.tar.gz: 8f0670ee61cfed74e0f34b874f0df614a5ac7591
5
5
  SHA512:
6
- metadata.gz: 2d0cf6ebf473a19eb15497b70344c0f332cfcffda10c09cbb0d07c119e057cf4633aac4dc6ba77849c400d31129e3ca325157e66bf207a427309c2a8fd28b4f3
7
- data.tar.gz: 55a7cd2740faf850e6534e0aa4f240ef2dff326ec968cafd458b0920d1b336701e5d4fdf150ed0d89cfe7467a3bb23aa7f5f63c254cd5c98501b6c2db3a56858
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.log_message unless @log.nil?
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
- exit -1
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
- exit -1
375
+ return
376
376
  end
377
377
 
378
378
  log_and_print "File #{filename} removed"
379
379
  end
380
380
 
381
- def self.by_rename(filename)
382
- new_name = "#{filename}.#{Time.new.strftime('%Y-%m-%d.%H:%M:%S')}"
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 self.by_delete(filename)
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
+
@@ -1,5 +1,5 @@
1
1
  module NexposeServiceNow
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  VENDOR = 'ServiceNow'
4
4
  PRODUCT = 'CMDB'
5
5
  end
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.0
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-08-08 00:00:00.000000000 Z
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.6.7
115
+ rubygems_version: 2.5.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Gem for Nexpose-ServiceNow integration.