-
Notifications
You must be signed in to change notification settings - Fork 7
/
metadata.rb
99 lines (80 loc) · 3.52 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
maintainer 'Danial Pearce'
maintainer_email '[email protected]'
license 'MIT'
description 'Creates a init.d scripts for your unicorns.'
version '0.2'
recipe 'unicorn', 'Creates a init.d scripts and configs for your unicorns.'
supports 'ubuntu'
attribute 'unicorn/installs',
:description => 'An array of your unicorn installs.',
:type => 'array'
attribute 'unicorn/app_root',
:description => 'The root of your unicorn app.',
:type => 'string'
attribute 'unicorn/rack_env',
:description => 'The rack env to be passed to unicorn.',
:type => 'string',
:default => 'production'
attribute 'unicorn/pid',
:description => 'The file path for the unicorn pid.',
:type => 'string',
:default => '#{unicorn::app_root}/tmp/pids/unicorn.pid'
attribute 'unicorn/service',
:description => 'The identifier for this service.',
:type => 'string',
:default => 'unicorn-#{unicorn::rack_env}'
attribute 'unicorn/command',
:description => 'The command used to start unicorn.',
:type => 'string',
:default => 'cd #{unicorn::app_root} && bundle exec unicorn_rails -D -E #{unicorn::rack_env} -c #{unicorn::config}'
attribute 'unicorn/user',
:description => 'The user to start the master unicorn as.',
:type => 'string',
:default => 'root'
attribute 'unicorn/config',
:description => 'Hash of config attributes.',
:type => 'hash'
attribute 'unicorn/config/path',
:description => 'The file path for the unicorn config.',
:type => 'string',
:default => '#{unicorn::app_root}/config/unicorn.rb'
attribute 'unicorn/config/stderr_path',
:description => 'Where stderr goes for unicorn.',
:type => 'string',
:default => '#{unicorn::app_root}/log/unicorn.log'
attribute 'unicorn/config/stdout_path',
:description => 'Where stdout goes for unicorn.',
:type => 'string',
:default => '#{unicorn::app_root}/log/unicorn.log'
attribute 'unicorn/config/listen',
:description => 'An array of ways unicorn will listen. First element is the port or socket, second element is the options for that listener (optional).',
:type => 'array',
:default => [['3000', '{ :tcp_nodelay => true, :tries => 5 }']]
attribute 'unicorn/config/working_directory',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => nil
attribute 'unicorn/config/worker_timeout',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => '60'
attribute 'unicorn/config/preload_app',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => 'false'
attribute 'unicorn/config/worker_processes',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => '1'
attribute 'unicorn/config/before_exec',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => nil
attribute 'unicorn/config/before_fork',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => nil
attribute 'unicorn/config/after_fork',
:description => 'Please see the unicorn documentation for a description of this setting.',
:type => 'string',
:default => nil