osc-vnc 1.0.10 → 1.1.0
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/session.rb +9 -10
- data/lib/osc/vnc/version.rb +1 -1
- data/osc-vnc.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ae09f43cee37347730f081c51ed8aa4cae7621e
|
4
|
+
data.tar.gz: c3e90c563c4d07373cbbe30169ae872647a03e87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f03bc33f0035f43393f9e2b79c91f5ebee72df0bd3471efc027e302d82c8e060806456bd5a890fa53a3b0887fb3c16239412a06aaed23e94c0beaf5ad360d6
|
7
|
+
data.tar.gz: 459b7a796a90d52e5bcf2e2075245a802f236eb13ed9b8358b869ef774a30f950f5d088c8256aa42d9840b7f0603c3fdf5e13b848f0fb2a6dca7cfc9d68eba4a
|
data/lib/osc/vnc/session.rb
CHANGED
@@ -9,17 +9,17 @@ module OSC
|
|
9
9
|
class Session
|
10
10
|
include OSC::VNC::Listenable
|
11
11
|
|
12
|
-
# @return [PBS::
|
13
|
-
attr_reader :
|
12
|
+
# @return [PBS::Batch] The batch object used.
|
13
|
+
attr_reader :batch
|
14
14
|
|
15
15
|
# @return [ScriptView] The batch script used.
|
16
16
|
attr_reader :script
|
17
17
|
|
18
|
-
# @param job [PBS::
|
18
|
+
# @param job [PBS::Batch] The batch object used.
|
19
19
|
# @param script [ScriptView] The batch script used.
|
20
20
|
# @param opts [Hash] The options used to construct a session.
|
21
|
-
def initialize(
|
22
|
-
@
|
21
|
+
def initialize(batch, script, opts = {})
|
22
|
+
@batch = batch
|
23
23
|
@script = script
|
24
24
|
end
|
25
25
|
|
@@ -40,17 +40,16 @@ module OSC
|
|
40
40
|
# Create tcp listen server if requested
|
41
41
|
listen_server = _create_listen_server(e) if script.tcp_server?
|
42
42
|
|
43
|
-
|
44
|
-
|
43
|
+
id = batch.submit_string(
|
44
|
+
script.render,
|
45
45
|
headers: _get_headers(h),
|
46
46
|
resources: _get_resources(r),
|
47
|
-
envvars: _get_envvars(e)
|
48
|
-
qsub: true
|
47
|
+
envvars: _get_envvars(e)
|
49
48
|
)
|
50
49
|
|
51
50
|
_write_listen_conn_info(listen_server) if script.tcp_server?
|
52
51
|
|
53
|
-
|
52
|
+
id
|
54
53
|
end
|
55
54
|
|
56
55
|
# The connection information file.
|
data/lib/osc/vnc/version.rb
CHANGED
data/osc-vnc.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_runtime_dependency "pbs", "~>
|
22
|
+
spec.add_runtime_dependency "pbs", "~> 2.0"
|
23
23
|
spec.add_runtime_dependency "mustache", "~> 1.0"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
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.0
|
4
|
+
version: 1.1.0
|
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-08-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pbs
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mustache
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|