osc-vnc 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/osc/vnc/connview.rb +7 -2
- data/lib/osc/vnc/session.rb +0 -8
- data/lib/osc/vnc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d49e9ae2e7d9ca1777498d5972eed31f2c1c9bb
|
4
|
+
data.tar.gz: 7af1d0f008f7dcb997c7a540088c954b1962e993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92f4381f9dd7c54247262d81c9de088939a625832fee5a79a1470366afe5ef4415fa706ce6a90f9c197c642b8adf9e3a8ce222cd91ece15a0ebc8f3298cfe4ff
|
7
|
+
data.tar.gz: 2e49ee55b0f76bb8884b777d5ee2bb95da914226a830ac0eab07c96aec6fdfae8007b79c016e0b7949fc1124a91bd8bdd0edd9c4fe34983bddb3d67f4f993608
|
data/lib/osc/vnc/connview.rb
CHANGED
@@ -11,10 +11,15 @@ module OSC
|
|
11
11
|
# @return [Session] The session object with connection information.
|
12
12
|
attr_reader :session
|
13
13
|
|
14
|
+
# @return [Pathname] The path to the connection file.
|
15
|
+
attr_reader :connfile
|
16
|
+
|
14
17
|
# @param session [Session] The session object with the connection information.
|
18
|
+
# @param connfile [#to_s] The connection file with the connection information.
|
15
19
|
# @param opts [Hash] The options used to construct a connection information view.
|
16
|
-
def initialize(session, opts = {})
|
20
|
+
def initialize(session, connfile, opts = {})
|
17
21
|
@session = session
|
22
|
+
@connfile = Pathname.new(connfile.to_s)
|
18
23
|
refresh
|
19
24
|
end
|
20
25
|
|
@@ -45,7 +50,7 @@ module OSC
|
|
45
50
|
# @raise [InvalidPath] if connection file does not exist
|
46
51
|
# @raise [InvalidConnInfo] if connection file doesn't contain required information (i.e.: host, port, display, password)
|
47
52
|
def refresh
|
48
|
-
_get_file_contents(
|
53
|
+
_get_file_contents(connfile.to_s)
|
49
54
|
self
|
50
55
|
end
|
51
56
|
|
data/lib/osc/vnc/session.rb
CHANGED
@@ -52,14 +52,6 @@ module OSC
|
|
52
52
|
id
|
53
53
|
end
|
54
54
|
|
55
|
-
# The connection information file.
|
56
|
-
#
|
57
|
-
# @return [String] path to connection information file for this session
|
58
|
-
def conn_file
|
59
|
-
"#{script.outdir}/#{job.id}.conn"
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
55
|
private
|
64
56
|
|
65
57
|
# The hash of PBS header attributes for the job.
|
data/lib/osc/vnc/version.rb
CHANGED