tenable-ruby 0.3.4 → 0.3.5
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-ruby.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62d89d312e6e7158b3fbf7b1103b456c562fbbae79dd58d24c118f343aef4283
|
|
4
|
+
data.tar.gz: e695f0feb3b421fb46f61e19a76d814c67f0862956eb211f3a9729ab40379ed5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53a54893dc0430bb179cfe696e6794e2915aef3f0493228cf4afe2fc555a569caf2c6d9e65cf6795f57ff8faba248a6de2894b79bc837c96fd27e691974950e8
|
|
7
|
+
data.tar.gz: 2b497d2b1dd10e5cc181eedbe0f85c0d3c0f6665fb005ad30c511094496e311521d673fe18efa0a697a4976e55080f62f4bb8f00c376d6fd32f9a091857edc4d
|
data/lib/tenable-ruby.rb
CHANGED
|
@@ -244,8 +244,13 @@ module TenableRuby
|
|
|
244
244
|
#
|
|
245
245
|
# Reference
|
|
246
246
|
# https://developer.tenable.com/reference#agents-list
|
|
247
|
-
def agent_list
|
|
248
|
-
|
|
247
|
+
def agent_list(params=nil)
|
|
248
|
+
url = "/scanners/scanner_list/agents"
|
|
249
|
+
unless params.nil?
|
|
250
|
+
params = params.to_a.map { |x| "#{x[0]}=#{x[1]}" }.join("&")
|
|
251
|
+
url = "#{url}?#{params}"
|
|
252
|
+
end
|
|
253
|
+
http_get(:uri => url, :fields => header)
|
|
249
254
|
end
|
|
250
255
|
|
|
251
256
|
# Creates an agent group on the scanner
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tenable-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrick Craston
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |-
|
|
14
14
|
Ruby library for communicating with the tenable.io API.
|