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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ae09f43cee37347730f081c51ed8aa4cae7621e
4
- data.tar.gz: c3e90c563c4d07373cbbe30169ae872647a03e87
3
+ metadata.gz: 7d49e9ae2e7d9ca1777498d5972eed31f2c1c9bb
4
+ data.tar.gz: 7af1d0f008f7dcb997c7a540088c954b1962e993
5
5
  SHA512:
6
- metadata.gz: 81f03bc33f0035f43393f9e2b79c91f5ebee72df0bd3471efc027e302d82c8e060806456bd5a890fa53a3b0887fb3c16239412a06aaed23e94c0beaf5ad360d6
7
- data.tar.gz: 459b7a796a90d52e5bcf2e2075245a802f236eb13ed9b8358b869ef774a30f950f5d088c8256aa42d9840b7f0603c3fdf5e13b848f0fb2a6dca7cfc9d68eba4a
6
+ metadata.gz: 92f4381f9dd7c54247262d81c9de088939a625832fee5a79a1470366afe5ef4415fa706ce6a90f9c197c642b8adf9e3a8ce222cd91ece15a0ebc8f3298cfe4ff
7
+ data.tar.gz: 2e49ee55b0f76bb8884b777d5ee2bb95da914226a830ac0eab07c96aec6fdfae8007b79c016e0b7949fc1124a91bd8bdd0edd9c4fe34983bddb3d67f4f993608
@@ -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(session.conn_file)
53
+ _get_file_contents(connfile.to_s)
49
54
  self
50
55
  end
51
56
 
@@ -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.
@@ -1,6 +1,6 @@
1
1
  module OSC
2
2
  module VNC
3
3
  # The current version of osc-vnc.
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osc-vnc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Nicklas