nexpose 0.8.6 → 0.8.7

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: 2d155da8a6809996a0d6b256536545a3c45554be
4
- data.tar.gz: 2ef562dc10924617e59593730c587791c3226523
3
+ metadata.gz: 4a34cdeb971857fcd6f7de262b1cd30823039f96
4
+ data.tar.gz: 3cca7ce023e3826cef57e3ddd41280b20af48a8e
5
5
  SHA512:
6
- metadata.gz: 084f5d5a5bded5948d052145cff788905552b745f2898dbb013da506d1affeaf36d5913f1bebaebb95fc339401f97ebda6e4742b2815a7f5bf239716daf47564
7
- data.tar.gz: abd42a4cf1f65811dacc7533f811566f3d18fff448af16028d97cdab659a1a0f4a343d0c0b97bab9d3aa970320b94c5678e5258c2759db60baec330b33bb7e33
6
+ metadata.gz: d281a778836d4a11e1726dc8bd9c570025279cef9cf70f6ef056451ea45c995179f59d87abb648b3c4b22be4bd166c0bcd0052ed7b661c78e1bf7462c5cef729
7
+ data.tar.gz: 47d847fbba3c67b893a033bc56ffd25cc9b6c57edcdbb07d015959109da46fa199d5e0fa16eb8d2c9e438c8a42da9d423b830d86cf7da24d0690079ba06160be
@@ -182,7 +182,7 @@ module Nexpose
182
182
  r = connection.execute(xml, '1.2')
183
183
  if r.success
184
184
  r.res.elements.each('EngineSaveResponse/EngineConfig') do |v|
185
- return @id = v.attributes['id']
185
+ return @id = v.attributes['id'].to_i
186
186
  end
187
187
  end
188
188
  end
@@ -40,6 +40,24 @@ module Nexpose
40
40
  @name = name
41
41
  @scope = scope
42
42
  end
43
+
44
+ # Deletes an engine pool
45
+ #
46
+ # @param [Connection] conn Connection to console where site exists.
47
+ #
48
+ def delete(conn)
49
+ xml = conn.make_xml('EnginePoolDeleteRequest')
50
+ xml.add_element(as_xml)
51
+ result = conn.execute(xml, '1.2')
52
+ result.success
53
+ end
54
+
55
+ def as_xml
56
+ xml = REXML::Element.new('EnginePool')
57
+ xml.add_attribute('name', @name)
58
+ xml.add_attribute('scope', @scope)
59
+ xml
60
+ end
43
61
  end
44
62
 
45
63
  # Engine pool configuration object.
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: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-10-13 00:00:00.000000000 Z
14
+ date: 2014-10-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rex