Sha256: 7db7e6f565f206ff7552dac2c8fe2f14c605534e971ffe40d8fbb2d5b70671c2

Contents?: true

Size: 729 Bytes

Versions: 37

Compression:

Stored size: 729 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8
# 20121112 masa workflow manager client
Version = '20170728-105851'

require 'drb/drb' 

unless job_id = ARGV[0]
	puts "Usage:\n #{__FILE__} [job_id] [server]"
  puts
  puts "  job_id: required"
  puts "  server: workflow_manager URI (default: druby://localhost:12345)"
	exit
end
uri = ARGV[1]||'druby://localhost:12345'
wfmrc = if File.exist?(".wfmrc")
          ".wfmrc"
        elsif File.exist?(File.expand_path("~/.wfmrc"))
          File.expand_path("~/.wfmrc")
        end
if wfmrc
  File.readlines(wfmrc).each do |line|
    if line =~ /server:\s*(druby.+)/
      uri = $1
    end
  end
end
workflow_manager = DRbObject.new_with_uri(uri)
puts workflow_manager.get_script_path(job_id)

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
workflow_manager-0.9.1 bin/wfm_get_script_path
workflow_manager-0.9.0 bin/wfm_get_script_path
workflow_manager-0.8.1 bin/wfm_get_script_path
workflow_manager-0.8.0 bin/wfm_get_script_path
workflow_manager-0.7.9 bin/wfm_get_script_path
workflow_manager-0.7.8 bin/wfm_get_script_path
workflow_manager-0.7.7 bin/wfm_get_script_path
workflow_manager-0.7.6 bin/wfm_get_script_path
workflow_manager-0.7.5 bin/wfm_get_script_path
workflow_manager-0.7.4 bin/wfm_get_script_path
workflow_manager-0.7.3 bin/wfm_get_script_path
workflow_manager-0.7.2 bin/wfm_get_script_path
workflow_manager-0.7.1 bin/wfm_get_script_path
workflow_manager-0.7.0 bin/wfm_get_script_path
workflow_manager-0.6.0 bin/wfm_get_script_path
workflow_manager-0.5.9 bin/wfm_get_script_path
workflow_manager-0.5.8 bin/wfm_get_script_path
workflow_manager-0.5.7 bin/wfm_get_script_path
workflow_manager-0.5.6 bin/wfm_get_script_path
workflow_manager-0.5.5 bin/wfm_get_script_path