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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcfdfeda8e63a46295a05e17640fe749208718b1
4
- data.tar.gz: d93d9ea15cdca0faf003bf14856011d8483ccc39
3
+ metadata.gz: 22861bcf2f5d19a2bf68a6f6567a28d891629013
4
+ data.tar.gz: c75b98daadb61ea3a6a7e5d297d9db138504b064
5
5
  SHA512:
6
- metadata.gz: c9e076b7eb8c7568cb0960afcd1f44867e67766349bf867ae3a2f1217111675564e2f71eccdfa68ad0012b04bcbae106fc1e7453855b9f7a836ca7ee5a401058
7
- data.tar.gz: 23a0493c6889b42d226bae0d4a581edac86dbbd9af17f161c2f206a9fef131b5ef12f60058d83ced22c017671629ea94b4ef77104bcf955dce4c1e2a54707c5b
6
+ metadata.gz: 0d6f56a70b6f889f2fb10d0071823bae2de84cbdb708517e638218729f6c5b287a938bbd39c28ee292ba72545ce3093b1e961110d57bdeaf28fd8043a3083239
7
+ data.tar.gz: 6a698024497d3a41a781dc879873b948e8974b8b698abc2b9895cd562302aa4fe6c8869f98b9f9ab6440b43d385efc077f4243290228cb469eac4948669cc5c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- daemon-ogre (2.0.1)
4
+ daemon-ogre (2.0.2)
5
5
  argv (>= 2.1.0)
6
6
  tmp (>= 2.0.1)
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.0.2
@@ -6,6 +6,7 @@ require 'daemon-ogre.rb'
6
6
  # to check it's running
7
7
  # `ps aux | grep $0`
8
8
 
9
+ ARGVEXT.show_help
9
10
  DaemonOgre.init
10
11
 
11
12
  60.times do
@@ -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( *[:d,:daemon,:daemonize])
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( *[:k,:kill,:terminate])
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
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemon-ogre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi