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 +4 -4
- data/lib/osc/vnc/connview.rb +11 -11
- data/lib/osc/vnc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: becc51f5142aefc3ad5609f5de415125c1842c78
|
4
|
+
data.tar.gz: aaec78e6639e2275c0a11d9566de77ac861318b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 294cf4c83bc13e5770863ec55ca24c5620f8d18e612a7f09efffe3452d45d445b4c37ed5cd1622ab33f3d3bb47ab14cd17b70314136d7b163ee9c4826ff82676
|
7
|
+
data.tar.gz: aa2e3015bfb73cd98f866e64c6e03e1381d09ebfeb9a41ca4cbb090de9c008ef185accead04ceeae27f1a94ba9e828ca9be69d0ef78d11c12af5edbbe00c1686
|
data/lib/osc/vnc/connview.rb
CHANGED
@@ -8,17 +8,17 @@ module OSC
|
|
8
8
|
class ConnView < Mustache
|
9
9
|
self.template_path = CONN_TEMPLATE_PATH
|
10
10
|
|
11
|
-
# @return [
|
12
|
-
attr_reader :
|
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
|
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(
|
21
|
-
@
|
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
|
-
"#{
|
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
|
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
|
65
|
-
|
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
|
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) ||
|
78
|
+
@conn_context.include?(method_name) || script.respond_to?(method_name) || super
|
79
79
|
end
|
80
80
|
|
81
81
|
|
data/lib/osc/vnc/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pbs
|