tenable-ruby 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tenable-ruby.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 805557c5611128bd1d9402ddb3e37aa62b26bce3
|
4
|
+
data.tar.gz: ae808b5d5fc23f142a6c2e6ef7097d081c3a47c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01d8079cbd7e95fc13c1566416c23979ad709d31adaf9bbd3f14a9eaf92ed179b40bcccbeaeff4d8f024d53a2346ca0db352c8839be4dc31ceb48072174be4e
|
7
|
+
data.tar.gz: 2e83f3332791f0161105fe02e75860575e68067c81e3c09aa005b5419a482909fd01846aed3669e81a038b63bae4d713ee5914dc96f80075ac9e7e9ac214fead
|
data/lib/tenable-ruby.rb
CHANGED
@@ -538,10 +538,12 @@ module TenableRuby
|
|
538
538
|
se = scan_export(scan_id, format)
|
539
539
|
# ready, loading
|
540
540
|
while (status = scan_export_status(scan_id, se['file'])['status']) != "ready" do
|
541
|
-
# puts status
|
542
541
|
if status.nil? or status == ''
|
543
542
|
return nil
|
544
543
|
end
|
544
|
+
if status == "error"
|
545
|
+
raise TenableRuby::Error::TenableError, "Tenable.io returned an error while exporting the scan"
|
546
|
+
end
|
545
547
|
sleep @defsleep
|
546
548
|
end
|
547
549
|
report_download(scan_id, se['file'])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenable-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlatko Kosturjak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: "Unofficial Ruby library for communicating with the tenable.io API (also
|
15
15
|
works with Nessus 6).\n You can start, stop, pause and resume scan. Get status
|