marathon_deploy 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/bin/expand_macros +0 -0
  4. data/bin/json2yaml +0 -0
  5. data/doc/MarathonDeploy/Application.html +906 -0
  6. data/doc/MarathonDeploy/Deployment.html +1348 -0
  7. data/doc/MarathonDeploy/Environment.html +480 -0
  8. data/doc/MarathonDeploy/Error/BadFormatError.html +131 -0
  9. data/doc/MarathonDeploy/Error/BadURLError.html +131 -0
  10. data/doc/MarathonDeploy/Error/DeploymentError.html +131 -0
  11. data/doc/MarathonDeploy/Error/IOError.html +131 -0
  12. data/doc/MarathonDeploy/Error/MarathonError.html +127 -0
  13. data/doc/MarathonDeploy/Error/MissingMarathonAttributesError.html +131 -0
  14. data/doc/MarathonDeploy/Error/TimeoutError.html +131 -0
  15. data/doc/MarathonDeploy/Error/UndefinedMacroError.html +131 -0
  16. data/doc/MarathonDeploy/Error/UnsupportedFileExtension.html +131 -0
  17. data/doc/MarathonDeploy/Error.html +115 -0
  18. data/doc/MarathonDeploy/HttpUtil.html +664 -0
  19. data/doc/MarathonDeploy/Macro.html +192 -0
  20. data/doc/MarathonDeploy/MarathonClient.html +615 -0
  21. data/doc/MarathonDeploy/MarathonDefaults.html +460 -0
  22. data/doc/MarathonDeploy/Utils.html +354 -0
  23. data/doc/MarathonDeploy/YamlJson.html +374 -0
  24. data/doc/MarathonDeploy.html +156 -0
  25. data/doc/_index.html +318 -0
  26. data/doc/class_list.html +58 -0
  27. data/doc/css/common.css +1 -0
  28. data/doc/css/full_list.css +57 -0
  29. data/doc/css/style.css +339 -0
  30. data/doc/file.README.html +223 -0
  31. data/doc/file_list.html +60 -0
  32. data/doc/frames.html +26 -0
  33. data/doc/index.html +223 -0
  34. data/doc/js/app.js +219 -0
  35. data/doc/js/full_list.js +181 -0
  36. data/doc/js/jquery.js +4 -0
  37. data/doc/method_list.html +393 -0
  38. data/doc/top-level-namespace.html +112 -0
  39. data/lib/marathon_deploy/application.rb +7 -7
  40. data/lib/marathon_deploy/version.rb +1 -1
  41. data/lib/marathon_deploy.rb +1 -0
  42. data/marathon_deploy.gemspec +1 -0
  43. metadata +52 -3
@@ -0,0 +1,480 @@
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
+ Class: MarathonDeploy::Environment
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!MarathonDeploy/Environment.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (E)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../MarathonDeploy.html" title="MarathonDeploy (module)">MarathonDeploy</a></span></span>
36
+ &raquo;
37
+ <span class="title">Environment</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: MarathonDeploy::Environment
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">MarathonDeploy::Environment</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/marathon_deploy/environment.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+
103
+
104
+
105
+
106
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+ <span class="note title readonly">readonly</span>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>Returns the value of attribute name.</p>
133
+ </div></span>
134
+
135
+ </li>
136
+
137
+
138
+ </ul>
139
+
140
+
141
+
142
+
143
+
144
+ <h2>
145
+ Instance Method Summary
146
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
147
+ </h2>
148
+
149
+ <ul class="summary">
150
+
151
+ <li class="public ">
152
+ <span class="summary_signature">
153
+
154
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Environment) <strong>initialize</strong>(name) </a>
155
+
156
+
157
+
158
+ </span>
159
+
160
+
161
+ <span class="note title constructor">constructor</span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <span class="summary_desc"><div class='inline'>
171
+ <p>A new instance of Environment.</p>
172
+ </div></span>
173
+
174
+ </li>
175
+
176
+
177
+ <li class="public ">
178
+ <span class="summary_signature">
179
+
180
+ <a href="#is_production%3F-instance_method" title="#is_production? (instance method)">- (Boolean) <strong>is_production?</strong> </a>
181
+
182
+
183
+
184
+ </span>
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <span class="summary_desc"><div class='inline'></div></span>
195
+
196
+ </li>
197
+
198
+
199
+ <li class="public ">
200
+ <span class="summary_signature">
201
+
202
+ <a href="#marathon_endpoints-instance_method" title="#marathon_endpoints (instance method)">- (Object) <strong>marathon_endpoints</strong> </a>
203
+
204
+
205
+
206
+ </span>
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+ <span class="summary_desc"><div class='inline'></div></span>
217
+
218
+ </li>
219
+
220
+
221
+ <li class="public ">
222
+ <span class="summary_signature">
223
+
224
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
225
+
226
+
227
+
228
+ </span>
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+ <span class="summary_desc"><div class='inline'></div></span>
239
+
240
+ </li>
241
+
242
+
243
+ </ul>
244
+
245
+
246
+ <div id="constructor_details" class="method_details_list">
247
+ <h2>Constructor Details</h2>
248
+
249
+ <div class="method_details first">
250
+ <h3 class="signature first" id="initialize-instance_method">
251
+
252
+ - (<tt><span class='object_link'><a href="" title="MarathonDeploy::Environment (class)">Environment</a></span></tt>) <strong>initialize</strong>(name)
253
+
254
+
255
+
256
+
257
+
258
+ </h3><div class="docstring">
259
+ <div class="discussion">
260
+
261
+ <p>Returns a new instance of Environment</p>
262
+
263
+
264
+ </div>
265
+ </div>
266
+ <div class="tags">
267
+
268
+
269
+ </div><table class="source_code">
270
+ <tr>
271
+ <td>
272
+ <pre class="lines">
273
+
274
+
275
+ 8
276
+ 9
277
+ 10
278
+ 11
279
+ 12
280
+ 13</pre>
281
+ </td>
282
+ <td>
283
+ <pre class="code"><span class="info file"># File 'lib/marathon_deploy/environment.rb', line 8</span>
284
+
285
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
286
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='op'>!</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span><span class='rparen'>)</span>
287
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Error</span><span class='op'>::</span><span class='const'>BadFormatError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>argument for environment must be a string</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_caller'>caller</span>
288
+ <span class='kw'>end</span>
289
+ <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_upcase'>upcase</span>
290
+ <span class='kw'>end</span></pre>
291
+ </td>
292
+ </tr>
293
+ </table>
294
+ </div>
295
+
296
+ </div>
297
+
298
+ <div id="instance_attr_details" class="attr_details">
299
+ <h2>Instance Attribute Details</h2>
300
+
301
+
302
+ <span id=""></span>
303
+ <div class="method_details first">
304
+ <h3 class="signature first" id="name-instance_method">
305
+
306
+ - (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
307
+
308
+
309
+
310
+
311
+
312
+ </h3><div class="docstring">
313
+ <div class="discussion">
314
+
315
+ <p>Returns the value of attribute name</p>
316
+
317
+
318
+ </div>
319
+ </div>
320
+ <div class="tags">
321
+
322
+
323
+ </div><table class="source_code">
324
+ <tr>
325
+ <td>
326
+ <pre class="lines">
327
+
328
+
329
+ 6
330
+ 7
331
+ 8</pre>
332
+ </td>
333
+ <td>
334
+ <pre class="code"><span class="info file"># File 'lib/marathon_deploy/environment.rb', line 6</span>
335
+
336
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
337
+ <span class='ivar'>@name</span>
338
+ <span class='kw'>end</span></pre>
339
+ </td>
340
+ </tr>
341
+ </table>
342
+ </div>
343
+
344
+ </div>
345
+
346
+
347
+ <div id="instance_method_details" class="method_details_list">
348
+ <h2>Instance Method Details</h2>
349
+
350
+
351
+ <div class="method_details first">
352
+ <h3 class="signature first" id="is_production?-instance_method">
353
+
354
+ - (<tt>Boolean</tt>) <strong>is_production?</strong>
355
+
356
+
357
+
358
+
359
+
360
+ </h3><div class="docstring">
361
+ <div class="discussion">
362
+
363
+
364
+ </div>
365
+ </div>
366
+ <div class="tags">
367
+
368
+ <p class="tag_title">Returns:</p>
369
+ <ul class="return">
370
+
371
+ <li>
372
+
373
+
374
+ <span class='type'>(<tt>Boolean</tt>)</span>
375
+
376
+
377
+
378
+ </li>
379
+
380
+ </ul>
381
+
382
+ </div><table class="source_code">
383
+ <tr>
384
+ <td>
385
+ <pre class="lines">
386
+
387
+
388
+ 19
389
+ 20
390
+ 21
391
+ 22
392
+ 23
393
+ 24</pre>
394
+ </td>
395
+ <td>
396
+ <pre class="code"><span class="info file"># File 'lib/marathon_deploy/environment.rb', line 19</span>
397
+
398
+ <span class='kw'>def</span> <span class='id identifier rubyid_is_production?'>is_production?</span>
399
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_casecmp'>casecmp</span><span class='lparen'>(</span><span class='const'>MarathonDefaults</span><span class='op'>::</span><span class='const'>PRODUCTION_ENVIRONMENT_NAME</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='int'>0</span><span class='rparen'>)</span>
400
+ <span class='kw'>return</span> <span class='kw'>true</span>
401
+ <span class='kw'>end</span>
402
+ <span class='kw'>return</span> <span class='kw'>false</span>
403
+ <span class='kw'>end</span></pre>
404
+ </td>
405
+ </tr>
406
+ </table>
407
+ </div>
408
+
409
+ <div class="method_details ">
410
+ <h3 class="signature " id="marathon_endpoints-instance_method">
411
+
412
+ - (<tt>Object</tt>) <strong>marathon_endpoints</strong>
413
+
414
+
415
+
416
+
417
+
418
+ </h3><table class="source_code">
419
+ <tr>
420
+ <td>
421
+ <pre class="lines">
422
+
423
+
424
+ 15
425
+ 16
426
+ 17</pre>
427
+ </td>
428
+ <td>
429
+ <pre class="code"><span class="info file"># File 'lib/marathon_deploy/environment.rb', line 15</span>
430
+
431
+ <span class='kw'>def</span> <span class='id identifier rubyid_marathon_endpoints'>marathon_endpoints</span>
432
+ <span class='kw'>return</span>
433
+ <span class='kw'>end</span></pre>
434
+ </td>
435
+ </tr>
436
+ </table>
437
+ </div>
438
+
439
+ <div class="method_details ">
440
+ <h3 class="signature " id="to_s-instance_method">
441
+
442
+ - (<tt>Object</tt>) <strong>to_s</strong>
443
+
444
+
445
+
446
+
447
+
448
+ </h3><table class="source_code">
449
+ <tr>
450
+ <td>
451
+ <pre class="lines">
452
+
453
+
454
+ 26
455
+ 27
456
+ 28</pre>
457
+ </td>
458
+ <td>
459
+ <pre class="code"><span class="info file"># File 'lib/marathon_deploy/environment.rb', line 26</span>
460
+
461
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
462
+ <span class='ivar'>@name</span>
463
+ <span class='kw'>end</span></pre>
464
+ </td>
465
+ </tr>
466
+ </table>
467
+ </div>
468
+
469
+ </div>
470
+
471
+ </div>
472
+
473
+ <div id="footer">
474
+ Generated on Thu Aug 6 12:50:37 2015 by
475
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
476
+ 0.8.7.6 (ruby-2.2.0).
477
+ </div>
478
+
479
+ </body>
480
+ </html>
@@ -0,0 +1,131 @@
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: MarathonDeploy::Error::BadFormatError
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!MarathonDeploy/Error/BadFormatError.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (B)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../MarathonDeploy.html" title="MarathonDeploy (module)">MarathonDeploy</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Error.html" title="MarathonDeploy::Error (module)">Error</a></span></span>
36
+ &raquo;
37
+ <span class="title">BadFormatError</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Exception: MarathonDeploy::Error::BadFormatError
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="MarathonError.html" title="MarathonDeploy::Error::MarathonError (class)">MarathonError</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">StandardError</li>
82
+
83
+ <li class="next"><span class='object_link'><a href="MarathonError.html" title="MarathonDeploy::Error::MarathonError (class)">MarathonError</a></span></li>
84
+
85
+ <li class="next">MarathonDeploy::Error::BadFormatError</li>
86
+
87
+ </ul>
88
+ <a href="#" class="inheritanceTree">show all</a>
89
+
90
+ </dd>
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dt class="r2 last">Defined in:</dt>
101
+ <dd class="r2 last">lib/marathon_deploy/error.rb</dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ </div>
123
+
124
+ <div id="footer">
125
+ Generated on Thu Aug 6 12:50:37 2015 by
126
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
+ 0.8.7.6 (ruby-2.2.0).
128
+ </div>
129
+
130
+ </body>
131
+ </html>