Sha256: 97bf31a7806673f776e9f0027dd4dfcec091e7a07487e178a1d2a7a48dade232
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
# encoding: utf-8 require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'rake' require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "worker-army" gem.homepage = "http://github.com/okiess/worker-army" gem.license = "MIT" gem.summary = %Q{Simple worker queue} gem.description = %Q{Simple redis based worker queue with a HTTP/Rest interface} gem.email = "kiessler@inceedo.com" gem.authors = ["Oliver Kiessler"] end Jeweler::RubygemsDotOrgTasks.new require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end task :default => :test require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "worker-army #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end require File.dirname(__FILE__) + '/lib/worker-army' task 'start_example_worker' do WorkerArmy::Worker.new(ExampleJob.new).process_queue end desc "Start a worker-army worker to execute a job class" task :start_worker, :job_class do |t, args| if args[:job_class] clazz = Object.const_get(args[:job_class].to_s) WorkerArmy::Worker.new(clazz.new).process_queue end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
worker-army-0.5.0 | Rakefile |
worker-army-0.4.1 | Rakefile |
worker-army-0.4.0 | Rakefile |