Sha256: 779e131e0e9d0cc3f1c040bac04ae2b597e06efbcbf8bc3f69e8e06633d9e220

Contents?: true

Size: 750 Bytes

Versions: 11

Compression:

Stored size: 750 Bytes

Contents

namespace :sad do
	desc "start sad with args - COUNT=4 QUEUE=sosad DIR=./tmp/pids"
	task :start do
		opts = {
			:dir => ENV['DIR'],
			:multiple => true,
			:log_output => true,
			:backtrace  => true,
			:ARGV => ['start']
		}
		Sad::Runner.exec(opts)
	end

	desc "stop sad with args - COUNT=4 QUEUE=sosad DIR=./tmp/pids"
	task :stop do
		opts = {
			:dir => ENV['DIR'],
			:multiple => true,
			:log_output => true,
			:backtrace  => true,
			:ARGV => ['stop']
		}
		Sad::Runner.exec(opts)
	end

	desc "restart sad with args - COUNT=4 QUEUE=sosad DIR=./tmp/pids"
	task :restart do
		opts = {
			:dir => ENV['DIR'],
			:multiple => true,
			:log_output => true,
			:backtrace  => true,
			:ARGV => ['restart']
		}
		Sad::Runner.exec(opts)
	end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sad-1.5.6 lib/sad/tasks.rb
sad-1.5.5 lib/sad/tasks.rb
sad-1.5.4 lib/sad/tasks.rb
sad-1.5.3 lib/sad/tasks.rb
sad-1.5.2 lib/sad/tasks.rb
sad-1.5.1 lib/sad/tasks.rb
sad-1.5.0 lib/sad/tasks.rb
sad-1.4.0 lib/sad/tasks.rb
sad-1.3.0 lib/sad/tasks.rb
sad-1.2.0 lib/sad/tasks.rb
sad-1.1.0 lib/sad/tasks.rb