forked from resque/resque-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
30 lines (23 loc) · 827 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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']