upstart-exporter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.yardoc/checksums CHANGED
@@ -1,2 +1,6 @@
1
- lib/upstart-exporter/version.rb a404cb7649f4dea9db79f256d83b8712ef428467
2
- lib/upstart-exporter.rb 7f28a3494f2ce18e7ba6ba0326f03ddb3ee24d09
1
+ lib/upstart-exporter/errors.rb 047e710c4e096fc4904b4ab25f7bb582435a609d
2
+ lib/upstart-exporter/options/global.rb 33275fe084a715f1008a55979f5be1512159a0eb
3
+ lib/upstart-exporter/templates.rb d0e83f2f0438a8858ebab1176a4ce7a7d3a2bc68
4
+ lib/upstart-exporter/version.rb 33b65b53ac5cd086145208f71e82ff0bf85017af
5
+ lib/upstart-exporter.rb cdae517465df1e0d50976af9791048106a4ae98e
6
+ lib/upstart-exporter/options/command_line.rb 2415bb8f834bf410ec50b4602de670111f9cd8c7
Binary file
data/.yardoc/proxy_types CHANGED
Binary file
data/README.md CHANGED
@@ -25,12 +25,14 @@ The export process is configured through the only config, /etc/upstart-exporter.
25
25
  run_user: www # The user under which all installed through upstart-exporter background jobs are run
26
26
  helper_dir: /var/helper_dir # Auxilary directory for scripts incapsulating background jobs
27
27
  upstart_dir: /var/upstart_dir # Directory where upstart scripts should be placed
28
+ prefix: 'myupstartjobs-' # Prefix added to app's log folders and upstart scripts
28
29
 
29
30
  The config is not installed by default. If this config is absent, the default values are the following:
30
31
 
31
32
  helper_dir: /var/local/upstart_helpers/
32
33
  upstart_dir: /etc/init/
33
34
  run_user: service
35
+ prefix: 'fb-'
34
36
 
35
37
  To give a certain user (i.e. deployuser) ability to use this script, one can place the following lines into sudoers file:
36
38
 
@@ -81,7 +83,7 @@ in /var/local/upstart\_helpers/:
81
83
  fb-myapp-my_another_tail_cmd.sh
82
84
  fb-myapp-my_tail_cmd.sh
83
85
 
84
- Prefix fb- is added to avoid collisions with other upstart jobs. After this my\_tail\_cmd, for example, will be able to be started as an upstart script:
86
+ Prefix 'fb-' (which can be customised through config) is added to avoid collisions with other upstart jobs. After this my\_tail\_cmd, for example, will be able to be started as an upstart script:
85
87
 
86
88
  sudo start fb-myapp-my_tail_cmd
87
89
 
@@ -0,0 +1,116 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Exception: Upstart::Exporter::Error
8
+
9
+ &mdash; Documentation by YARD 0.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '../..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../../_index.html">Index (E)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../../Upstart.html" title="Upstart (module)">Upstart</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Exporter.html" title="Upstart::Exporter (class)">Exporter</a></span></span>
38
+ &raquo;
39
+ <span class="title">Error</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Exception: Upstart::Exporter::Error
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">RuntimeError</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">RuntimeError</li>
75
+
76
+ <li class="next">Upstart::Exporter::Error</li>
77
+
78
+ </ul>
79
+ <a href="#" class="inheritanceTree">show all</a>
80
+
81
+ </dd>
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <dt class="r2 last">Defined in:</dt>
92
+ <dd class="r2 last">lib/upstart-exporter/errors.rb</dd>
93
+
94
+ </dl>
95
+ <div class="clear"></div>
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ </div>
108
+
109
+ <div id="footer">
110
+ Generated on Thu Dec 22 20:43:32 2011 by
111
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
+ 0.7.4 (ruby-1.8.7).
113
+ </div>
114
+
115
+ </body>
116
+ </html>
@@ -0,0 +1,189 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Upstart::Exporter::Errors
8
+
9
+ &mdash; Documentation by YARD 0.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '../..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../../_index.html">Index (E)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../../Upstart.html" title="Upstart (module)">Upstart</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Exporter.html" title="Upstart::Exporter (class)">Exporter</a></span></span>
38
+ &raquo;
39
+ <span class="title">Errors</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Module: Upstart::Exporter::Errors
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+ <dt class="r1">Included in:</dt>
74
+ <dd class="r1"><span class='object_link'><a href="../Exporter.html" title="Upstart::Exporter (class)">Upstart::Exporter</a></span>, <span class='object_link'><a href="Options/CommandLine.html" title="Upstart::Exporter::Options::CommandLine (class)">Options::CommandLine</a></span>, <span class='object_link'><a href="Options/Global.html" title="Upstart::Exporter::Options::Global (class)">Options::Global</a></span></dd>
75
+
76
+
77
+
78
+ <dt class="r2 last">Defined in:</dt>
79
+ <dd class="r2 last">lib/upstart-exporter/errors.rb</dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <h2>
91
+ Instance Method Summary
92
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
93
+ </h2>
94
+
95
+ <ul class="summary">
96
+
97
+ <li class="public ">
98
+ <span class="summary_signature">
99
+
100
+ <a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong>(msg) </a>
101
+
102
+
103
+
104
+ </span>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <span class="summary_desc"><div class='inline'></div></span>
114
+
115
+ </li>
116
+
117
+
118
+ </ul>
119
+
120
+
121
+
122
+
123
+ <div id="instance_method_details" class="method_details_list">
124
+ <h2>Instance Method Details</h2>
125
+
126
+
127
+ <div class="method_details first">
128
+ <p class="signature first" id="error-instance_method">
129
+
130
+ - (<tt>Object</tt>) <strong>error</strong>(msg)
131
+
132
+
133
+
134
+ </p><div class="docstring">
135
+ <div class="discussion">
136
+
137
+
138
+ </div>
139
+ </div>
140
+ <div class="tags">
141
+
142
+ <h3>Raises:</h3>
143
+ <ul class="raise">
144
+
145
+ <li>
146
+
147
+
148
+ <span class='type'>(<tt><span class='object_link'><a href="Error.html" title="Upstart::Exporter::Error (class)">Upstart::Exporter::Error</a></span></tt>)</span>
149
+
150
+
151
+
152
+ </li>
153
+
154
+ </ul>
155
+
156
+ </div><table class="source_code">
157
+ <tr>
158
+ <td>
159
+ <pre class="lines">
160
+
161
+
162
+ 5
163
+ 6
164
+ 7</pre>
165
+ </td>
166
+ <td>
167
+ <pre class="code"><span class="info file"># File 'lib/upstart-exporter/errors.rb', line 5</span>
168
+
169
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_error identifier id'>error</span><span class='lparen token'>(</span><span class='rubyid_msg identifier id'>msg</span><span class='rparen token'>)</span>
170
+ <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_Upstart constant id'>Upstart</span><span class='colon2 op'>::</span><span class='rubyid_Exporter constant id'>Exporter</span><span class='colon2 op'>::</span><span class='rubyid_Error constant id'>Error</span><span class='comma token'>,</span> <span class='rubyid_msg identifier id'>msg</span>
171
+ <span class='rubyid_end end kw'>end</span>
172
+ </pre>
173
+ </td>
174
+ </tr>
175
+ </table>
176
+ </div>
177
+
178
+ </div>
179
+
180
+ </div>
181
+
182
+ <div id="footer">
183
+ Generated on Thu Dec 22 20:43:32 2011 by
184
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
+ 0.7.4 (ruby-1.8.7).
186
+ </div>
187
+
188
+ </body>
189
+ </html>