forked from jmettraux/rufus-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
83 lines (54 loc) · 1.53 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
require 'rubygems'
require 'rake'
load 'lib/rufus/sc/version.rb'
#
# CLEAN
require 'rake/clean'
CLEAN.include('pkg', 'tmp', 'html')
task :default => [ :clean ]
#
# GEM
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.version = Rufus::Scheduler::VERSION
gem.name = 'rufus-scheduler'
gem.summary = 'job scheduler for Ruby (at, cron, in and every jobs)'
gem.description = %{
job scheduler for Ruby (at, cron, in and every jobs).
By default uses a Ruby thread, if EventMachine is present, it will rely on it.
}
gem.email = '[email protected]'
gem.homepage = 'http://github.com/jmettraux/rufus-scheduler/'
gem.authors = [ 'John Mettraux' ]
gem.rubyforge_project = 'rufus'
gem.test_file = 'spec/spec.rb'
#gem.add_dependency 'yajl-ruby'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'yard'
gem.add_development_dependency 'bacon'
gem.add_development_dependency 'jeweler'
# gemspec spec : http://www.rubygems.org/read/chapter/20
end
Jeweler::GemcutterTasks.new
#
# DOC
begin
require 'yard'
YARD::Rake::YardocTask.new do |doc|
doc.options = [
'-o', 'html/rufus-scheduler', '--title',
"rufus-scheduler #{Rufus::Scheduler::VERSION}"
]
end
rescue LoadError
task :yard do
abort "YARD is not available : sudo gem install yard"
end
end
#
# TO THE WEB
task :upload_website => [ :clean, :yard ] do
account = '[email protected]'
webdir = '/var/www/gforge-projects/rufus'
sh "rsync -azv -e ssh html/rufus-scheduler #{account}:#{webdir}/"
end