osc-vnc 1.1.2 → 1.1.3

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: 993d057ddc718f7b8eb762cabdff631b78ba2ad8
4
- data.tar.gz: ee847de9b6644cd3eca374bc07db2645df9b2509
3
+ metadata.gz: becc51f5142aefc3ad5609f5de415125c1842c78
4
+ data.tar.gz: aaec78e6639e2275c0a11d9566de77ac861318b4
5
5
  SHA512:
6
- metadata.gz: 3e8b6fd0d844d5ba1641d2e671f084c37f67ffe008b7dc44958ef1c729ecc8a88b1042e529e75d8e23826ae9b91762d5067ea94ca936d7aa11f0835bdd733881
7
- data.tar.gz: 093e17fe78548d943f717fa6eeea2ee8b68132c219463f6583b863566d594809563291d34b9596d9d9d6c22817ba1d47d0068f310a577e607718b61d26bd46b9
6
+ metadata.gz: 294cf4c83bc13e5770863ec55ca24c5620f8d18e612a7f09efffe3452d45d445b4c37ed5cd1622ab33f3d3bb47ab14cd17b70314136d7b163ee9c4826ff82676
7
+ data.tar.gz: aa2e3015bfb73cd98f866e64c6e03e1381d09ebfeb9a41ca4cbb090de9c008ef185accead04ceeae27f1a94ba9e828ca9be69d0ef78d11c12af5edbbe00c1686
@@ -8,17 +8,17 @@ module OSC
8
8
  class ConnView < Mustache
9
9
  self.template_path = CONN_TEMPLATE_PATH
10
10
 
11
- # @return [Session] The session object with connection information.
12
- attr_reader :session
11
+ # @return [ScriptView] The script object with information about the job setup.
12
+ attr_reader :script
13
13
 
14
14
  # @return [Pathname] The path to the connection file.
15
15
  attr_reader :connfile
16
16
 
17
- # @param session [Session] The session object with the connection information.
17
+ # @param script [ScriptView] The script object with information about the job setup..
18
18
  # @param connfile [#to_s] The connection file with the connection information.
19
19
  # @param opts [Hash] The options used to construct a connection information view.
20
- def initialize(session, connfile, opts = {})
21
- @session = session
20
+ def initialize(script, connfile, opts = {})
21
+ @script = script
22
22
  @connfile = Pathname.new(connfile.to_s)
23
23
  refresh
24
24
  end
@@ -40,7 +40,7 @@ module OSC
40
40
  # The host to use for the ssh connection.
41
41
  # @return [String] the hostname for the login node
42
42
  def sshhost
43
- "#{session.script.cluster}.osc.edu"
43
+ "#{script.cluster}.osc.edu"
44
44
  end
45
45
 
46
46
  # Get connection info from file generated by PBS batch job (read
@@ -54,15 +54,15 @@ module OSC
54
54
  self
55
55
  end
56
56
 
57
- # Check if the method call exists on @conn_context or session.script
57
+ # Check if the method call exists on @conn_context or the script object
58
58
  #
59
59
  # @param method_name the method name called
60
60
  # @param arguments the arguments to the call
61
61
  # @param block an optional block for the call
62
62
  def method_missing(method_name, *arguments, &block)
63
63
  @conn_context.fetch(method_name) do
64
- if session.script.respond_to? method_name
65
- session.script.send method_name
64
+ if script.respond_to? method_name
65
+ script.send method_name
66
66
  else
67
67
  super
68
68
  end
@@ -70,12 +70,12 @@ module OSC
70
70
  end
71
71
 
72
72
  # Checks if the method responds to an instance method, or is able to
73
- # proxy it to @conn_context or session.script.
73
+ # proxy it to @conn_context or the script object.
74
74
  #
75
75
  # @param method_name the method name to check
76
76
  # @return [Boolean]
77
77
  def respond_to_missing?(method_name, include_private = false)
78
- @conn_context.include?(method_name) || session.script.respond_to?(method_name) || super
78
+ @conn_context.include?(method_name) || script.respond_to?(method_name) || super
79
79
  end
80
80
 
81
81
 
@@ -1,6 +1,6 @@
1
1
  module OSC
2
2
  module VNC
3
3
  # The current version of osc-vnc.
4
- VERSION = "1.1.2"
4
+ VERSION = "1.1.3"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osc-vnc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-01 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pbs