workflow_manager 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66b2a81121fa902f29f0ae0eb71dcf8d94d96e84
4
- data.tar.gz: 98ce36f9bc6555a6e0ebde2354b22a7c73849c7f
3
+ metadata.gz: 0e1065d164138dc5eff1ba9cd87910322c0e1387
4
+ data.tar.gz: 37e9557d9cafcf146bf0d2d74ce612bdc6c702b6
5
5
  SHA512:
6
- metadata.gz: e04a777c4452f43aab2f7b1675482b49de6904b8b2634d86150cc4a527fff4e768e5e31eb27248dcc1ec1d3edfcde6f8af6bd3255aaa55cfd749e12f629476f0
7
- data.tar.gz: a51808fcb44dd57739bddbcd3fa5021e99941ae34c9b982c31bdb1dd1c05b4e77ff900ba8cef431a608a9311ab022489a897984f847f828a078ca04b575b20fb
6
+ metadata.gz: 4b00d44d57d0c74164815366b15b8f9191d754b9bf086ebf3b15e3f32758b4aff279dc53dc4ff8c169ddd476dec458b973675b4346e0cc0804e66df5c6959ca2
7
+ data.tar.gz: 437dd99972576d6d8ceaf8c645ace2352732cc53405555c976296849e47ef6cbd7c6219ae93e5df20f976addf13837a03f348f037a4f56f9a0f79cb2008a75fc
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: utf-8
3
+ # 20121112 masa workflow manager client
4
+ Version = '20170728-105851'
5
+
6
+ require 'drb/drb'
7
+
8
+ unless job_id = ARGV[0]
9
+ puts "Usage:\n #{__FILE__} [job_id] [server]"
10
+ puts
11
+ puts " job_id: required"
12
+ puts " server: workflow_manager URI (default: druby://localhost:12345)"
13
+ exit
14
+ end
15
+ uri = ARGV[1]||'druby://localhost:12345'
16
+ wfmrc = if File.exist?(".wfmrc")
17
+ ".wfmrc"
18
+ elsif File.exist?(File.expand_path("~/.wfmrc"))
19
+ File.expand_path("~/.wfmrc")
20
+ end
21
+ if wfmrc
22
+ File.readlines(wfmrc).each do |line|
23
+ if line =~ /server:\s*(druby.+)/
24
+ uri = $1
25
+ end
26
+ end
27
+ end
28
+ workflow_manager = DRbObject.new_with_uri(uri)
29
+ puts workflow_manager.get_script_path(job_id)
@@ -1,3 +1,3 @@
1
1
  module WorkflowManager
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Functional Genomics Center Zurich
@@ -45,6 +45,7 @@ executables:
45
45
  - wfm_delete_command
46
46
  - wfm_get_log
47
47
  - wfm_get_script
48
+ - wfm_get_script_path
48
49
  - wfm_hello
49
50
  - wfm_job_list
50
51
  - wfm_kill_job
@@ -63,6 +64,7 @@ files:
63
64
  - bin/wfm_delete_command
64
65
  - bin/wfm_get_log
65
66
  - bin/wfm_get_script
67
+ - bin/wfm_get_script_path
66
68
  - bin/wfm_hello
67
69
  - bin/wfm_job_list
68
70
  - bin/wfm_kill_job