nexpose-functions 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/nexpose-functions.rb +5 -2
- metadata +31 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9141d8a7899f12228144ffa77801ded6bfcba24d
|
4
|
+
data.tar.gz: b24b8d54932d7f2530a4458686ec5eb114b30adc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 124f53d0bbb1f28dd3779b52727b4a1e2e85201b4ff3e064eadc5c414940e6038d1073491c1e9d724b3240d201d7050442c7d74bdb0e0e119b2441e4424d2cd7
|
7
|
+
data.tar.gz: 3a07550a2043f4911957afa060a888e5409304ebfc652b3498e43bb6e45d26c09c179d2e1fcc7cb4fc8345b54c5c6a655da37582c5d33414850190c83f6816bf
|
data/lib/nexpose-functions.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# Nexpose functions
|
2
2
|
|
3
|
-
require "nexpose"
|
4
3
|
|
5
4
|
# Log into a Nexpose console. Returns a connection object.
|
6
5
|
#
|
@@ -15,6 +14,10 @@ def NexposeLogin(consoleIP)
|
|
15
14
|
password = STDIN.noecho(&:gets).chomp
|
16
15
|
puts ""
|
17
16
|
|
17
|
+
# Blank the proxy variables so they won't be used to connect to the Console.
|
18
|
+
ENV['http_proxy'] = nil
|
19
|
+
ENV['https_proxy'] = nil
|
20
|
+
|
18
21
|
# Create connection and login.
|
19
22
|
nsc = Nexpose::Connection.new(consoleIP, username, password)
|
20
23
|
nsc.login
|
@@ -138,7 +141,7 @@ class Nexpose::Site
|
|
138
141
|
end
|
139
142
|
|
140
143
|
puts "Saving site assets..."
|
141
|
-
@site.
|
144
|
+
@site.included_addresses = @hostnames
|
142
145
|
@site.save(@nsc)
|
143
146
|
puts "Done."
|
144
147
|
puts "Site #{self.id} now has #{@hostnames.length} assets."
|
metadata
CHANGED
@@ -1,62 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexpose-functions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Red5d
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
11
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nexpose
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0
|
14
27
|
description: Additional useful functions for use with the Nexpose API.
|
15
28
|
email:
|
16
29
|
executables: []
|
17
30
|
extensions: []
|
18
31
|
extra_rdoc_files: []
|
19
32
|
files:
|
20
|
-
- doc/
|
21
|
-
- doc/
|
22
|
-
- doc/
|
23
|
-
- doc/
|
33
|
+
- doc/Nexpose/Connection.html
|
34
|
+
- doc/Nexpose/Site.html
|
35
|
+
- doc/_index.html
|
36
|
+
- doc/class_list.html
|
24
37
|
- doc/css/common.css
|
25
38
|
- doc/css/full_list.css
|
26
|
-
- doc/
|
27
|
-
- doc/method_list.html
|
39
|
+
- doc/css/style.css
|
28
40
|
- doc/file_list.html
|
29
41
|
- doc/frames.html
|
30
42
|
- doc/index.html
|
31
|
-
- doc/
|
43
|
+
- doc/js/app.js
|
44
|
+
- doc/js/full_list.js
|
45
|
+
- doc/js/jquery.js
|
46
|
+
- doc/method_list.html
|
32
47
|
- doc/top-level-namespace.html
|
33
|
-
- doc/Nexpose/Connection.html
|
34
|
-
- doc/Nexpose/Site.html
|
35
48
|
- lib/nexpose-functions.rb
|
36
49
|
homepage: http://rubygems.org/gems/nexpose-functions
|
37
50
|
licenses:
|
38
51
|
- MIT
|
52
|
+
metadata: {}
|
39
53
|
post_install_message:
|
40
54
|
rdoc_options: []
|
41
55
|
require_paths:
|
42
56
|
- lib
|
43
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
58
|
requirements:
|
46
|
-
- -
|
59
|
+
- - ">="
|
47
60
|
- !ruby/object:Gem::Version
|
48
61
|
version: '0'
|
49
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
63
|
requirements:
|
52
|
-
- -
|
64
|
+
- - ">="
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: '0'
|
55
67
|
requirements: []
|
56
68
|
rubyforge_project:
|
57
|
-
rubygems_version:
|
69
|
+
rubygems_version: 2.4.5
|
58
70
|
signing_key:
|
59
|
-
specification_version:
|
71
|
+
specification_version: 4
|
60
72
|
summary: Additional Nexpose API functions.
|
61
73
|
test_files: []
|
62
74
|
has_rdoc:
|