procemon 1.2.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.document +5 -0
- data/.gitignore +9 -0
- data/Gemfile.lock +5 -5
- data/README.md +63 -46
- data/VERSION +1 -1
- data/examples/test.rb +48 -0
- data/lib/procemon.rb +4 -38
- data/lib/procemon/eval.rb +75 -0
- data/lib/procemon/{function/meta/inject_methods.rb → hooks.rb} +2 -2
- data/procemon.gemspec +4 -8
- data/test/test.rb +28 -2
- metadata +12 -31
- data/examples/how_to_inject_with_extra_process_a_method.rb +0 -38
- data/examples/require_files.rb +0 -3
- data/files.rb +0 -24
- data/lib/procemon/extra/sender.rb +0 -30
- data/lib/procemon/extra/str2duck.rb +0 -7
- data/lib/procemon/function/application.rb +0 -27
- data/lib/procemon/function/argv.rb +0 -78
- data/lib/procemon/function/daemon.rb +0 -188
- data/lib/procemon/function/documentation.rb +0 -14
- data/lib/procemon/function/file.rb +0 -67
- data/lib/procemon/function/generate.rb +0 -202
- data/lib/procemon/function/macaddr.rb +0 -97
- data/lib/procemon/function/meta/eval.rb +0 -76
- data/lib/procemon/function/name.rb +0 -13
- data/lib/procemon/function/port.rb +0 -35
- data/lib/procemon/function/tmp_dir.rb +0 -21
- data/lib/procemon/process.rb +0 -17
data/lib/procemon/process.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
module Process
|
2
|
-
|
3
|
-
def self.daemonize
|
4
|
-
File.create Application.pid,'a+'
|
5
|
-
File.create Application.log,'a+'
|
6
|
-
File.create Application.daemon_stderr,'a+'
|
7
|
-
Daemon.start fork,
|
8
|
-
Application.pid,
|
9
|
-
Application.log,
|
10
|
-
Application.daemon_stderr
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.stop
|
14
|
-
Daemon.stop
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|