nexpose 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a180ab3eff433d31088604fa0cbebe07a7be22c
4
- data.tar.gz: b50d30db2b8eb0d351dae295214cdd0f8e63c803
3
+ metadata.gz: 21a667918d8b90c0e4c4973bf75c5dca00ea27a6
4
+ data.tar.gz: 627a5f8bf4f1317fe753dd6707cf13384722f094
5
5
  SHA512:
6
- metadata.gz: 63bc634571fb06d9b4a40870b9e102cc8d53d67375052e34295a4e0f1c37167f24912a30b2c1b2d3dd205f8d60af091905fa8027b0b54bfd8a3cd0923f9e8488
7
- data.tar.gz: 3fecd48a480fd0cb88a855e08dea01ef80beeb25cbbfd189a77fda8bc2fff716d8b4fe564265df41d55c2e81caf330784a39f3bc465bfcec3582fa303abbd4bd
6
+ metadata.gz: ded568b5819049f20ce3b346389a5bdce391895060ba8f0a2cf20bb7057b934fc892689fb61def7b9aa7fbd701176b539160425875fd99b543c9dd80c422fded
7
+ data.tar.gz: 16a60054fc1af1aecebc4534378efc3b8b84b37e3063f0107cb4d36ce23a489e5387b5399c067046770741913ee513104ea058448fdc94c0e83c154b9b67a995
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (3.1.0)
4
+ nexpose (3.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -583,5 +583,21 @@ module Nexpose
583
583
  self.enable_debug_logging = enable
584
584
  self.aces_level = (enable ? 'full' : 'none')
585
585
  end
586
+
587
+ # Enable or disable windows service editor.
588
+ # @param [Boolean] enable Enable or disable windows service editor.
589
+ def windows_service_editor=(enable)
590
+ cifs_scanner = REXML::XPath.first(@xml, 'ScanTemplate/Plugins/Plugin[@name="java/CifsScanner"]')
591
+ param = REXML::XPath.first(cifs_scanner, './param[@name="windowsServiceEditor"]')
592
+ if param
593
+ param.text = (enable ? '1' : '0')
594
+ else
595
+ param = REXML::Element.new('param')
596
+ param.attributes['name'] = 'windowsServiceEditor'
597
+ param.text = (enable ? '1' : '0')
598
+ cifs_scanner.add_element(param)
599
+ end
600
+ param.text
601
+ end
586
602
  end
587
603
  end
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '3.1.0'
3
+ VERSION = '3.2.0'
4
4
  end
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: 3.1.0
4
+ version: 3.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: 2016-01-06 00:00:00.000000000 Z
16
+ date: 2016-01-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler