upstart-exporter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/upstart-exporter.rb
CHANGED
@@ -47,7 +47,7 @@ module Upstart
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def export_app
|
50
|
-
app_conf = Templates.app :app_name => app_name, :run_user => options[:run_user]
|
50
|
+
app_conf = Templates.app :app_name => app_name, :run_user => options[:run_user], :run_group => options[:run_group]
|
51
51
|
File.open(upstart_conf, 'w') do |f|
|
52
52
|
f.write(app_conf)
|
53
53
|
end
|
@@ -82,7 +82,7 @@ module Upstart
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def export_cmd_upstart_conf(cmd_name)
|
85
|
-
cmd_upstart_conf_content = Templates.command :app_name => app_name, :run_user => options[:run_user], :cmd_name => cmd_name, :helper_cmd_conf => helper_cmd_conf(cmd_name)
|
85
|
+
cmd_upstart_conf_content = Templates.command :app_name => app_name, :run_user => options[:run_user], :run_group => options[:run_group], :cmd_name => cmd_name, :helper_cmd_conf => helper_cmd_conf(cmd_name)
|
86
86
|
File.open(upstart_cmd_conf(cmd_name), 'w') do |f|
|
87
87
|
f.write(cmd_upstart_conf_content)
|
88
88
|
end
|
@@ -32,8 +32,8 @@ describe Upstart::Exporter do
|
|
32
32
|
exporter.export
|
33
33
|
|
34
34
|
File.read('/h/p-app-ls_cmd.sh').should == tpl.helper(:cmd => ' ls')
|
35
|
-
File.read('/u/p-app.conf').should == tpl.app(:run_user => 'u', :app_name => 'p-app')
|
36
|
-
File.read('/u/p-app-ls_cmd.conf').should == tpl.command(:run_user => 'u', :app_name => 'p-app', :cmd_name => 'ls_cmd', :helper_cmd_conf => '/h/p-app-ls_cmd.sh')
|
35
|
+
File.read('/u/p-app.conf').should == tpl.app(:run_user => 'u', :run_group => 'g', :app_name => 'p-app')
|
36
|
+
File.read('/u/p-app-ls_cmd.conf').should == tpl.command(:run_user => 'u', :run_group => 'g', :app_name => 'p-app', :cmd_name => 'ls_cmd', :helper_cmd_conf => '/h/p-app-ls_cmd.sh')
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: upstart-exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ilya Averyanov
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-22 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Gem for converting Procfile-like files to upstart scripts
|