trinidad_daemon 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/init.d/trinidad-daemon.sh.erb +1 -1
- data/lib/trinidad_daemon/configuration.rb +3 -2
- data/lib/trinidad_daemon.rb +1 -1
- data/trinidad_daemon.gemspec +16 -2
- metadata +16 -8
@@ -23,7 +23,7 @@ BSF_JAR=<%= "#{@jars_path}/bsf.jar" %>
|
|
23
23
|
|
24
24
|
# Add here the options that Trinidad needs to run your application,
|
25
25
|
# but DO NOT delete the -d option, i.e -e production
|
26
|
-
TRINIDAD_OPTS="-d $APP_PATH"
|
26
|
+
TRINIDAD_OPTS="-d $APP_PATH <%= @trinidad_options %>"
|
27
27
|
|
28
28
|
PIDFILE=<%= @pid_file %>
|
29
29
|
LOG_FILE=<%= @log_file %>
|
@@ -11,6 +11,7 @@ module Trinidad
|
|
11
11
|
|
12
12
|
def configure
|
13
13
|
@app_path = File.expand_path(ask('Application path?'))
|
14
|
+
@trinidad_options = ask('Trinidad options?', '-e production')
|
14
15
|
@jsvc = ask('Jsvc path?', `which jsvc`.chomp)
|
15
16
|
@java_home = ask('Java home?', default_java_home)
|
16
17
|
@jruby_home = ask('JRuby home?', default_jruby_home)
|
@@ -23,11 +24,11 @@ module Trinidad
|
|
23
24
|
|
24
25
|
daemon = ERB.new(
|
25
26
|
File.read(
|
26
|
-
File.expand_path('../../init.d/
|
27
|
+
File.expand_path('../../init.d/trinidad-daemon.sh.erb', File.dirname(__FILE__))
|
27
28
|
)
|
28
29
|
).result(binding)
|
29
30
|
|
30
|
-
tmp_file = "#{ENV['TMP_DIR']}/trinidad-daemon.sh"
|
31
|
+
tmp_file = "#{ENV['TMP_DIR'] || '/tmp'}/trinidad-daemon.sh"
|
31
32
|
File.open(tmp_file, 'w') do |file|
|
32
33
|
file.write(daemon)
|
33
34
|
end
|
data/lib/trinidad_daemon.rb
CHANGED
data/trinidad_daemon.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'trinidad_daemon'
|
16
|
-
s.version = '0.
|
17
|
-
s.date = '2010-09-
|
16
|
+
s.version = '0.2.0'
|
17
|
+
s.date = '2010-09-14'
|
18
18
|
s.rubyforge_project = 'trinidad_daemon'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
@@ -67,4 +67,18 @@ Gem::Specification.new do |s|
|
|
67
67
|
## Test files will be grabbed from the file list. Make sure the path glob
|
68
68
|
## matches what you actually use.
|
69
69
|
## s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
|
70
|
+
|
71
|
+
s.post_install_message = <<TEXT
|
72
|
+
|
73
|
+
------------------------------------------------------------------------------------
|
74
|
+
|
75
|
+
Please now run:
|
76
|
+
|
77
|
+
$ jruby -S trinidad_daemon_install
|
78
|
+
|
79
|
+
to complete the installation.
|
80
|
+
|
81
|
+
------------------------------------------------------------------------------------
|
82
|
+
|
83
|
+
TEXT
|
70
84
|
end
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 2
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Calavera
|
@@ -14,14 +14,13 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-14 00:00:00 +02:00
|
18
18
|
default_executable: trinidad_daemon_install
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: trinidad
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
24
|
requirements:
|
26
25
|
- - ">="
|
27
26
|
- !ruby/object:Gem::Version
|
@@ -56,13 +55,23 @@ has_rdoc: true
|
|
56
55
|
homepage: http://github.com/calavera/trinidad_daemon
|
57
56
|
licenses: []
|
58
57
|
|
59
|
-
post_install_message:
|
58
|
+
post_install_message: |+
|
59
|
+
|
60
|
+
------------------------------------------------------------------------------------
|
61
|
+
|
62
|
+
Please now run:
|
63
|
+
|
64
|
+
$ jruby -S trinidad_daemon_install
|
65
|
+
|
66
|
+
to complete the installation.
|
67
|
+
|
68
|
+
------------------------------------------------------------------------------------
|
69
|
+
|
60
70
|
rdoc_options:
|
61
71
|
- --charset=UTF-8
|
62
72
|
require_paths:
|
63
73
|
- lib
|
64
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
75
|
requirements:
|
67
76
|
- - ">="
|
68
77
|
- !ruby/object:Gem::Version
|
@@ -70,7 +79,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
79
|
- 0
|
71
80
|
version: "0"
|
72
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
82
|
requirements:
|
75
83
|
- - ">="
|
76
84
|
- !ruby/object:Gem::Version
|
@@ -80,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
88
|
requirements: []
|
81
89
|
|
82
90
|
rubyforge_project: trinidad_daemon
|
83
|
-
rubygems_version: 1.3.
|
91
|
+
rubygems_version: 1.3.6
|
84
92
|
signing_key:
|
85
93
|
specification_version: 2
|
86
94
|
summary: Trinidad daemon based on Apache Commons Daemon
|