tenable-ruby-sdk 0.2.0 → 0.2.1
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 +4 -4
- data/lib/tenable/resources/scans.rb +5 -6
- data/lib/tenable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86b71cea395f4634ebeee10f3a73541f012ecb41604c19cd4f8441d64a317ece
|
|
4
|
+
data.tar.gz: 1dd6a81da536e32ebfdcbb6b908d0eeb502ac471ae2f9d7ba713f87c4d76b93b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c83641303c4468e92e859611131006158aaa963e55d3c0c08ae687911748477a0c7327f98a2394bca6e40174b1ac37a5074c07545df7be0fb1fbd0e29a9c4f2d
|
|
7
|
+
data.tar.gz: e4caa53b483ceef74f7279384d3a3da94c34350cbd92623c3365c220ff3e24b535f677d785d1b061df0060f622ff5657b223b4ef11f323dee03a2d6c4119b05e
|
|
@@ -127,14 +127,13 @@ module Tenable
|
|
|
127
127
|
put("/scans/#{scan_id}/schedule", params)
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
# Retrieves the scan history.
|
|
130
|
+
# Retrieves the scan history from the scan details endpoint.
|
|
131
131
|
#
|
|
132
132
|
# @param scan_id [Integer, String] the scan ID
|
|
133
|
-
# @
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
get("/scans/#{scan_id}/history", params)
|
|
133
|
+
# @return [Array<Hash>] array of history records
|
|
134
|
+
def history(scan_id)
|
|
135
|
+
data = details(scan_id)
|
|
136
|
+
data['history'] || []
|
|
138
137
|
end
|
|
139
138
|
|
|
140
139
|
# Retrieves details for a specific host within a scan.
|
data/lib/tenable/version.rb
CHANGED