Sha256: 3216f7e91464ecd6526b80b82c04e3287eb9df1d3e845590cde441d15284a660
Contents?: true
Size: 522 Bytes
Versions: 2
Compression:
Stored size: 522 Bytes
Contents
#!/usr/bin/env ruby # # Launch a collection of remote controls # def launch_on_unix(title, command) terminal = ENV['TERM'] || "xterm" system "#{terminal} -t '#{title}' -e '#{command}'" end def launch_in_terminal(title, command) launch_on_unix(title, command) end first_port = ARGV[0] || 5555 last_port = ARGV[1] || 5555 base_directory = File.expand_path(File.dirname(__FILE__)) (first_port..last_port).each do |port| launch_in_terminal "Remote Control #{port}", "ant -Dport=#{port} launch-remote-control" end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
selenium-rspec-dsl-1.0.2 | vendor/selenium-grid-1.0.4/sample-scripts/launch-remote-controls.rb |
statt-0.0.1 | lib/selenium-grid/sample-scripts/launch-remote-controls.rb |