forever 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -1
- data/lib/forever/base.rb +2 -2
- data/lib/forever/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Forever
|
2
2
|
|
3
|
-
Small daemon framework for ruby
|
3
|
+
Small daemon framework **for ruby**, with logging, error handler watcher and much more.
|
4
|
+
|
5
|
+
The idea of the name and some concepts was taken by [forever for node.js](https://raw.github.com/indexzero/forever) written by Charlie Robbins.
|
4
6
|
|
5
7
|
## Why?
|
6
8
|
|
data/lib/forever/base.rb
CHANGED
@@ -6,8 +6,8 @@ module Forever
|
|
6
6
|
options.each { |k,v| send(k, v) }
|
7
7
|
|
8
8
|
Dir.chdir(dir) if exists?(dir)
|
9
|
-
|
10
|
-
|
9
|
+
Dir.mkdir(File.dirname(log)) if log && !File.exist?(File.dirname(log))
|
10
|
+
Dir.mkdir(File.dirname(pid)) if pid && !File.exist?(File.dirname(pid))
|
11
11
|
|
12
12
|
instance_eval(&block)
|
13
13
|
|
data/lib/forever/version.rb
CHANGED