Sha256: 1f2099a6debdcdc9678d457718b2c59db7f8ec84897723f48eb19728bc9518c2
Contents?: true
Size: 708 Bytes
Versions: 19
Compression:
Stored size: 708 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 # 20121112 masa workflow manager client Version = '20200522-134606' require 'drb/drb' if ARGV[0]=='-h' or ARGV[0]=='--help' puts "Usage:\n #{__FILE__}" exit end uri = ARGV[0]||'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 if line =~ /project:\s*(\d+)/ project_number = $1 end end end workflow_manager = DRbObject.new_with_uri(uri) puts workflow_manager.hello puts workflow_manager.cluster_node_list
Version data entries
19 entries across 19 versions & 1 rubygems