Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
31 lines (23 sloc) 0.827 kb
require 'bundler'
Bundler::GemHelper.install_tasks
# for loading the example config file in config/resque-pool.yml
require 'resque/pool/tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["-c", "-f progress"]
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |c|
c.profile = "rake"
end
task :default => [:spec, :features]
rule(/\.[1-9]$/ => [proc { |tn| "#{tn}.ronn" }]) do |t|
name = Resque::Pool.name.sub('::','-').upcase
version = "%s %s" % [name, Resque::Pool::VERSION.upcase]
manual = '--manual "%s"' % name
organization = '--organization "%s"' % version
sh "ronn #{manual} #{organization} <#{t.source} >#{t.name}"
end
file 'man/resque-pool.1'
file 'man/resque-pool.yml.5'
task :manpages => ['man/resque-pool.1','man/resque-pool.yml.5']
Jump to Line
Something went wrong with that request. Please try again.