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 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 Erubis::Eruby.new(IO.read(template_name)).result(
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 Erubis::Eruby.new(IO.read(template_name)).result(
314
+ script_source.print ERB.new(IO.read(template_name)).result(
313
315
  :logger => RunitMan.logger
314
316
  )
315
317
  end
@@ -1,4 +1,4 @@
1
1
  module RunitManVersion
2
- VERSION = '2.2.5'.freeze
2
+ VERSION = '2.2.6'.freeze
3
3
  end
4
4
 
data/sv/log/run.erb CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/sh
1
+ #!/bin/bash
2
2
  <% if logger == 'svlogd' %>
3
3
  mkdir -p /var/log/runit-man
4
4
  exec svlogd -tt /var/log/runit-man
data/sv/run.erb CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/sh
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 5
10
- version: 2.2.5
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-04 00:00:00 +04:00
18
+ date: 2011-05-06 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency