daemon-ogre 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/example/daemonizable.rb +1 -0
- data/lib/daemon-ogre/argv.rb +17 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22861bcf2f5d19a2bf68a6f6567a28d891629013
|
4
|
+
data.tar.gz: c75b98daadb61ea3a6a7e5d297d9db138504b064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d6f56a70b6f889f2fb10d0071823bae2de84cbdb708517e638218729f6c5b287a938bbd39c28ee292ba72545ce3093b1e961110d57bdeaf28fd8043a3083239
|
7
|
+
data.tar.gz: 6a698024497d3a41a781dc879873b948e8974b8b698abc2b9895cd562302aa4fe6c8869f98b9f9ab6440b43d385efc077f4243290228cb469eac4948669cc5c5
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.2
|
data/example/daemonizable.rb
CHANGED
data/lib/daemon-ogre/argv.rb
CHANGED
@@ -14,16 +14,30 @@ module DaemonOgre
|
|
14
14
|
|
15
15
|
end
|
16
16
|
|
17
|
+
@@daemon_keys= [:daemonize,:daemon,:d]
|
17
18
|
def daemonize?
|
18
|
-
check_args_for(
|
19
|
+
check_args_for( *@@daemon_keys )
|
19
20
|
end
|
20
21
|
alias :daemon? :daemonize?
|
21
22
|
|
23
|
+
@@terminate_keys= [:terminate,:kill,:k]
|
22
24
|
def terminate?
|
23
|
-
check_args_for(
|
25
|
+
check_args_for( *@@terminate_keys )
|
24
26
|
end
|
25
27
|
|
28
|
+
::ARGVEXT.add_help_msg(
|
29
|
+
"Start with one of the following tags the app, and it will be daemonized",
|
30
|
+
*@@daemon_keys
|
31
|
+
)
|
32
|
+
|
33
|
+
::ARGVEXT.add_help_msg(
|
34
|
+
"Start with one of the following tags the app, and it will be terminate the running app instance",
|
35
|
+
*@@terminate_keys
|
36
|
+
)
|
37
|
+
|
38
|
+
|
26
39
|
end
|
27
40
|
end
|
28
41
|
|
29
|
-
end
|
42
|
+
end
|
43
|
+
|