public
Fork of scrooloose/crondle
Description: A dsl for cron
Clone URL: git://github.com/halorgium/crondle.git
Search Repo:
Fixed some whitespace discrepancies
halorgium (author)
Tue Apr 08 14:22:05 -0700 2008
commit  98c937db537d8ef08eac7f62fdd72766a5068991
tree    5c5edb80ff57ea83952900bcd44d8c1a19908097
parent  7cf985a2b8d88bc4366b08a12fa1d4c0e34e6858
...
1
2
3
4
5
6
...
1
2
 
3
4
5
0
@@ -1,6 +1,5 @@
0
 module Crondle
0
   class Builder
0
-
0
     def desc(desc)
0
       @next_desc = desc
0
     end
...
2
3
4
5
6
7
8
...
61
62
63
64
 
65
66
67
...
2
3
4
 
5
6
7
...
60
61
62
 
63
64
65
66
0
@@ -2,7 +2,6 @@ module Crondle
0
   class Job
0
     class InvalidTimingParamError < StandardError; end
0
 
0
-
0
     attr_reader :minute,
0
       :hour,
0
       :day_of_month,
0
@@ -61,7 +60,7 @@ module Crondle
0
     end
0
 
0
     def to_s
0
- "# #{description}\n#{minute || "*"} #{hour || "*"} #{day_of_month || "*"} #{month || "*"} #{day_of_week || "*"} #{cmd}"
0
+ "# #{description}\n#{minute || "*"} #{hour || "*"} #{day_of_month || "*"} #{month || "*"} #{day_of_week || "*"} #{cmd}"
0
     end
0
   end
0
 end
...
75
76
77
78
79
80
...
75
76
77
 
78
79
0
@@ -75,6 +75,5 @@ module Crondle
0
       j = Job.new("desc", "ls", :minute => 1, :hour => 2, :day_of_month => 3, :month => 4, :day_of_week => :friday)
0
       j.to_s.should match(/^.*\n.*ls$/)
0
     end
0
-
0
   end
0
 end

Comments

    No one has commented yet.