runit-man 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/runit-man/app.rb +4 -2
- data/lib/runit-man/version.rb +1 -1
- data/sv/log/run.erb +1 -1
- data/sv/run.erb +1 -1
- metadata +4 -4
data/lib/runit-man/app.rb
CHANGED
@@ -288,10 +288,11 @@ class RunitMan < Sinatra::Base
|
|
288
288
|
|
289
289
|
private
|
290
290
|
def create_run_script(dir)
|
291
|
+
require 'erb'
|
291
292
|
script_name = File.join(dir, 'run')
|
292
293
|
template_name = File.join(GEM_FOLDER, 'sv', 'run.erb')
|
293
294
|
File.open(script_name, 'w') do |script_source|
|
294
|
-
script_source.print
|
295
|
+
script_source.print ERB.new(IO.read(template_name)).result(
|
295
296
|
:all_services_directory => RunitMan.all_services_directory,
|
296
297
|
:active_services_directory => RunitMan.active_services_directory,
|
297
298
|
:port => RunitMan.port,
|
@@ -306,10 +307,11 @@ class RunitMan < Sinatra::Base
|
|
306
307
|
end
|
307
308
|
|
308
309
|
def create_log_run_script(dir)
|
310
|
+
require 'erb'
|
309
311
|
script_name = File.join(dir, 'log', 'run')
|
310
312
|
template_name = File.join(GEM_FOLDER, 'sv', 'log', 'run.erb')
|
311
313
|
File.open(script_name, 'w') do |script_source|
|
312
|
-
script_source.print
|
314
|
+
script_source.print ERB.new(IO.read(template_name)).result(
|
313
315
|
:logger => RunitMan.logger
|
314
316
|
)
|
315
317
|
end
|
data/lib/runit-man/version.rb
CHANGED
data/sv/log/run.erb
CHANGED
data/sv/run.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/bin/
|
1
|
+
#!/bin/bash
|
2
2
|
exec 2>&1
|
3
3
|
exec runit-man<% if server.kind_of?(String) %> -s "<%= server %>"<% end %><% if bind %> -b <%= bind %><% end %> -p <%= port %> -a "<%= active_services_directory %>" -f "<%= all_services_directory %>"<% files_to_view.each do |f| %> -v "<%= f %>"<% end %><% auth.each_pair do |name, password| %> -u <%= name %>:<%= password %><% end %><%= logger ? " -l \"#{logger}\"" : '' %>
|
4
4
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runit-man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 2.2.
|
9
|
+
- 6
|
10
|
+
version: 2.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akzhan Abdulin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-06 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|