appjob 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/lib/appjob.rb +3 -1
- data/lib/appjob/every.rb +3 -16
- data/lib/appjob/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
= Appjob
|
2
2
|
|
3
|
-
Simple rails sheduler, which run ruby
|
3
|
+
Simple rails sheduler, which run ruby-tasks in current app environment
|
4
4
|
|
5
5
|
= Usage
|
6
6
|
|
7
|
-
Use script/appjob
|
7
|
+
Use script/appjob to manage tasks. script/appjob start or stop, and script/appjob stop taskname.
|
8
8
|
Appjob tasks configured in app/config/every.rb
|
data/lib/appjob.rb
CHANGED
data/lib/appjob/every.rb
CHANGED
@@ -2,19 +2,6 @@
|
|
2
2
|
log "find me at app/config/every.rb"
|
3
3
|
|
4
4
|
#repeated appjob-task, first argument - repeat interval, second - task name(must be unique)
|
5
|
-
every 3.seconds, "live" do
|
6
|
-
log "Live! 3 sec"
|
7
|
-
end
|
8
|
-
|
9
|
-
every 20.seconds, "killer" do
|
10
|
-
log "killer 20 sec"
|
11
|
-
end
|
12
|
-
|
13
|
-
every 6.seconds, "victim" do
|
14
|
-
log "victim 6 sec"
|
15
|
-
end
|
16
|
-
|
17
|
-
every 7.seconds, "list" do
|
18
|
-
log list
|
19
|
-
log "list task every 7 sec"
|
20
|
-
end
|
5
|
+
#every 3.seconds, "live" do
|
6
|
+
# log "Live! 3 sec"
|
7
|
+
#end
|
data/lib/appjob/version.rb
CHANGED
metadata
CHANGED