xencap 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xencap/plugin.rb +7 -2
- metadata +2 -2
data/lib/xencap/plugin.rb
CHANGED
@@ -8,14 +8,19 @@ module Xencap
|
|
8
8
|
@session = XenAPI::Session.new(uri)
|
9
9
|
_ignore_ssl_errors if options.fetch(:ignore_ssl_errors, false)
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
@session.login_with_password(options.fetch(:login), options.fetch(:password))
|
12
|
+
@session.timeout = 120
|
13
|
+
@request_dispatcher = Xencap::RequestDispatcher.new(@session)
|
13
14
|
end
|
14
15
|
|
15
16
|
def teardown
|
16
17
|
@session.logout unless @session.nil?
|
17
18
|
end
|
18
19
|
|
20
|
+
def set_timeout(timeout)
|
21
|
+
@session.timeout = timeout
|
22
|
+
end
|
23
|
+
|
19
24
|
def method_missing(method, *args)
|
20
25
|
@request_dispatcher.dispatch(method, *args)
|
21
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xencap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Should work with any xen system that uses XAPI (including XenServer &
|
15
15
|
XCP)
|