Sha256: 71a2ea78774bf14be4e4378043f973cb082fda1732471cd2936be177a6828219
Contents?: true
Size: 802 Bytes
Versions: 3
Compression:
Stored size: 802 Bytes
Contents
require "rubygems" begin require "daemons" rescue LoadError raise "The daemons gem must be installed" end namespace :deep_test do namespace :server do desc "Starts the server" task :start do Daemons.run_proc "deep_test_server", :ARGV => ["start"] do require "deep_test" ENV["RAILS_ENV"] = "test" Object.const_set "RAILS_ENV", "test" DeepTest::Server.start end sleep 0.25 end desc "Stops the server" task :stop do Daemons.run("deep_test_server", :ARGV => ["stop"]) end end namespace :workers do desc "Starts the workers" task :start do raise "deprecated -dan" end desc "Stops the workers" task :stop do Daemons.run("deep_test_worker", :ARGV => ["stop"]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deep_test-1.0.0 | lib/deep_test/tasks/rinda.rake |
deep_test-1.0.1 | lib/deep_test/tasks/rinda.rake |
deep_test-1.0.2 | lib/deep_test/tasks/rinda.rake |