daemons 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/test/tc_main.rb ADDED
@@ -0,0 +1,24 @@
1
+ require 'test/unit'
2
+
3
+ #CURRENT_DIR = File.split(File.expand_path(__FILE__))[0]
4
+
5
+ #$LOAD_PATH << File.join(CURRENT_DIR, '../lib')
6
+
7
+
8
+ require 'pp'
9
+
10
+ require 'daemons'
11
+
12
+
13
+ class TestMain < Test::Unit::TestCase
14
+
15
+ def test_argv_parsing
16
+ end
17
+
18
+ def test_run
19
+ #Daemons.run(File.join(CURRENT_DIR,'testapp.rb'))
20
+ end
21
+
22
+ end
23
+
24
+
data/test/test1.rb ADDED
@@ -0,0 +1,19 @@
1
+
2
+ SCRIPT_DIR = File.split(File.expand_path(__FILE__))[0]
3
+
4
+ $LOAD_PATH << File.join(SCRIPT_DIR, '../lib')
5
+
6
+
7
+ require 'pp'
8
+
9
+ require 'daemons'
10
+
11
+
12
+ options = {
13
+ :dir_mode => :script,
14
+ :dir => 'tmp',
15
+ :multiple => true
16
+ }
17
+
18
+ Daemons.run(File.join(SCRIPT_DIR,'testapp.rb'), options)
19
+
data/test/testapp.rb ADDED
@@ -0,0 +1,11 @@
1
+
2
+ require 'pp'
3
+
4
+ puts "Application ARGV:"
5
+ pp ARGV
6
+
7
+
8
+ loop do
9
+ sleep(5)
10
+ end
11
+
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.4
3
+ specification_version: 1
4
+ name: daemons
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.0.1
7
+ date: 2005-02-08
8
+ summary: A toolkit to convert your script to a controllable daemon
9
+ require_paths:
10
+ - lib
11
+ email: th.uehlinger@gmx.ch
12
+ homepage: http://daemons.rubyforge.org
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: daemons
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ -
22
+ - ">"
23
+ - !ruby/object:Gem::Version
24
+ version: 0.0.0
25
+ version:
26
+ platform: ruby
27
+ authors:
28
+ - Thomas Uehlinger
29
+ files:
30
+ - Rakefile
31
+ - Releases
32
+ - TODO
33
+ - README
34
+ - setup.rb
35
+ - lib/daemons.rb
36
+ - lib/daemons/daemonize.rb
37
+ - lib/daemons/exceptions.rb
38
+ - lib/daemons/cmdline.rb
39
+ - lib/daemons/pidfile.rb
40
+ - test/testapp.rb
41
+ - test/tc_main.rb
42
+ - test/test1.rb
43
+ - test/tmp
44
+ test_files:
45
+ - test/tc_main.rb
46
+ rdoc_options: []
47
+ extra_rdoc_files:
48
+ - README
49
+ - Releases
50
+ - TODO
51
+ executables: []
52
+ extensions: []
53
+ requirements: []
54
+ dependencies: []