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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 002b0a488d78ef3a0a9f4fd210fe466e94af00a7
4
- data.tar.gz: 57e9320f4bafb6ae56a174c3e6f757f4638eafe0
3
+ metadata.gz: 1ae09f43cee37347730f081c51ed8aa4cae7621e
4
+ data.tar.gz: c3e90c563c4d07373cbbe30169ae872647a03e87
5
5
  SHA512:
6
- metadata.gz: 8c3a7eac883c559d6927db5474047cbd979b8f8fc04556b64d346462a07aa04c14ea61c652c0d75ce6d60f58ed516a9727a7cc85a16ecf35f2198c9b97ff9cf6
7
- data.tar.gz: 63b751b760d75ed5141c580dafe5e98bc0da73af074817208ba5727c4cb799ee20fa46dfd205543f7b828d353f441b73f64f425ae4e4f03225fed32475b28ffc
6
+ metadata.gz: 81f03bc33f0035f43393f9e2b79c91f5ebee72df0bd3471efc027e302d82c8e060806456bd5a890fa53a3b0887fb3c16239412a06aaed23e94c0beaf5ad360d6
7
+ data.tar.gz: 459b7a796a90d52e5bcf2e2075245a802f236eb13ed9b8358b869ef774a30f950f5d088c8256aa42d9840b7f0603c3fdf5e13b848f0fb2a6dca7cfc9d68eba4a
@@ -9,17 +9,17 @@ module OSC
9
9
  class Session
10
10
  include OSC::VNC::Listenable
11
11
 
12
- # @return [PBS::Job] The job object used.
13
- attr_reader :job
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::Job] The job object used.
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(job, script, opts = {})
22
- @job = job
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
- job.submit(
44
- string: script.render,
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
- self
52
+ id
54
53
  end
55
54
 
56
55
  # The connection information file.
@@ -1,6 +1,6 @@
1
1
  module OSC
2
2
  module VNC
3
3
  # The current version of osc-vnc.
4
- VERSION = "1.0.10"
4
+ VERSION = "1.1.0"
5
5
  end
6
6
  end
@@ -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", "~> 1.0"
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.10
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-01 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mustache
29
29
  requirement: !ruby/object:Gem::Requirement