Sha256: 603eb39fd0214ccf5baa44ddcc463ceaa0ae0c5a9eed47c310dfd433b1ad0a79
Contents?: true
Size: 724 Bytes
Versions: 63
Compression:
Stored size: 724 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 # 20121112 masa workflow manager client Version = '20130307-094955' 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(job_id)
Version data entries
63 entries across 63 versions & 1 rubygems