nexpose 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/nexpose/scan_template.rb +24 -0
- data/lib/nexpose/version.rb +1 -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: e4353ffa0b47b791fee6d6b61637214b26c3db4a
|
4
|
+
data.tar.gz: e71be2c82494f0832a07f3e2896ca31ea14bee51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f241d4267bb92c7222bd0c80879800ef3038d55d9febee9fa897cf78d58972fbaf6ebe687eb24b9735f86340c905dfd1a44d21991b8be92151b193aed64c5dcc
|
7
|
+
data.tar.gz: b12d8098aa6609a688a8750e790023336fe732cb7b68f434b468a2d07fdef1fe0d15376beb5ab4d00711b47709a877c74779c7be159d252aae5e84873a5b961d
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nexpose (2.1.
|
5
|
-
|
4
|
+
nexpose (2.1.3)
|
5
|
+
multipart-post (~> 2.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -18,11 +18,11 @@ GEM
|
|
18
18
|
diff-lcs (1.2.5)
|
19
19
|
docile (1.1.5)
|
20
20
|
multi_json (1.11.0)
|
21
|
+
multipart-post (2.0.0)
|
21
22
|
parser (2.2.0.3)
|
22
23
|
ast (>= 1.1, < 3.0)
|
23
24
|
powerpack (0.1.0)
|
24
25
|
rainbow (2.0.0)
|
25
|
-
rex (2.0.8)
|
26
26
|
rspec (3.2.0)
|
27
27
|
rspec-core (~> 3.2.0)
|
28
28
|
rspec-expectations (~> 3.2.0)
|
@@ -577,5 +577,29 @@ module Nexpose
|
|
577
577
|
def aces_enabled?
|
578
578
|
return 'full' == aces_level
|
579
579
|
end
|
580
|
+
|
581
|
+
# Enable or disable the debug logging.
|
582
|
+
# @param [Boolean] enable Enable or disable the debug logging.
|
583
|
+
def enable_debug_logging=(enable)
|
584
|
+
return if enable.nil?
|
585
|
+
logging = REXML::XPath.first(@xml, 'ScanTemplate/Logging')
|
586
|
+
if logging.nil?
|
587
|
+
logging = REXML::Element.new('Logging')
|
588
|
+
@xml.add_element(logging)
|
589
|
+
end
|
590
|
+
debug_logging = REXML::XPath.first(logging, 'debugLogging')
|
591
|
+
if debug_logging.nil?
|
592
|
+
debug_logging = REXML::Element.new('debugLogging')
|
593
|
+
logging.add_element(debug_logging)
|
594
|
+
end
|
595
|
+
debug_logging.attributes['enabled'] = (enable ? 1 : 0)
|
596
|
+
end
|
597
|
+
|
598
|
+
# Enable or disable the enhanced logging.
|
599
|
+
# @param [Boolean] enable Enable or disable the enhanced logging.
|
600
|
+
def enable_enhanced_logging=(enable)
|
601
|
+
self.enable_debug_logging = enable
|
602
|
+
self.aces_level = (enable ? 'full' : 'none')
|
603
|
+
end
|
580
604
|
end
|
581
605
|
end
|
data/lib/nexpose/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexpose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HD Moore
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rex
|