Sha256: 2c58a9389b14586fcc5fee931be773fd20027a99f904e1d50dbbd7f044e81b0b
Contents?: true
Size: 1.5 KB
Versions: 3
Compression:
Stored size: 1.5 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 worker = WorkerArmy::Worker.new worker.job = ExampleJob.new worker.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] worker = WorkerArmy::Worker.new clazz = Object.const_get(args[:job_class].to_s) worker.job = clazz.new worker.process_queue end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
worker-army-0.3.2 | Rakefile |
worker-army-0.3.1 | Rakefile |
worker-army-0.3.0 | Rakefile |