Sha256: 37e549cd5d97eed2d6f2c2a608b8465bb6eef29a343f07571a918403b4509a08
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
require 'simpleworker' tasks = ['first', 'second', 'third'] redis = Redis.new ssh_worker = SimpleWorker::SshWorker.new( :host => 'localhost', :cmd => 'ruby -s worker.rb', # rsync will wipe out existing files in ~/my_unused_dir :dirname => 'my_unused_dir') runner = SimpleWorker::Runner.new(redis, tasks, :notify => [ssh_worker]) runner.run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simpleworker-0.1.1 | examples/ssh_worker.rb |
simpleworker-0.1.0 | examples/ssh_worker.rb |