devdnsd 3.1.2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/.rubocop.yml +82 -0
- data/.travis-gemfile +4 -10
- data/.travis.yml +11 -5
- data/CHANGELOG.md +11 -0
- data/Gemfile +9 -8
- data/README.md +4 -5
- data/Rakefile +22 -6
- data/bin/devdnsd +42 -36
- data/config/devdnsd_config.sample +11 -11
- data/devdnsd.gemspec +7 -6
- data/doc/DevDNSd.html +6 -6
- data/doc/DevDNSd/{ApplicationMethods/Aliases.html → Aliases.html} +96 -100
- data/doc/DevDNSd/Application.html +2170 -1084
- data/doc/DevDNSd/Configuration.html +63 -33
- data/doc/DevDNSd/Errors.html +3 -3
- data/doc/DevDNSd/Errors/InvalidRule.html +3 -3
- data/doc/DevDNSd/{ApplicationMethods/System.html → OSX.html} +116 -489
- data/doc/DevDNSd/Rule.html +448 -749
- data/doc/DevDNSd/{ApplicationMethods/Server.html → Server.html} +77 -73
- data/doc/DevDNSd/System.html +895 -0
- data/doc/DevDNSd/Version.html +6 -6
- data/doc/_index.html +28 -27
- data/doc/class_list.html +6 -2
- data/doc/file.README.html +8 -9
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +8 -9
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +106 -84
- data/doc/top-level-namespace.html +3 -3
- data/lib/devdnsd.rb +10 -8
- data/lib/devdnsd/aliases.rb +171 -0
- data/lib/devdnsd/application.rb +93 -704
- data/lib/devdnsd/configuration.rb +20 -11
- data/lib/devdnsd/errors.rb +1 -1
- data/lib/devdnsd/osx.rb +217 -0
- data/lib/devdnsd/rule.rb +65 -94
- data/lib/devdnsd/server.rb +118 -0
- data/lib/devdnsd/system.rb +102 -0
- data/lib/devdnsd/version.rb +3 -3
- data/locales/en.yml +17 -16
- data/locales/it.yml +17 -16
- data/spec/devdnsd/application_spec.rb +188 -184
- data/spec/devdnsd/configuration_spec.rb +2 -2
- data/spec/devdnsd/rule_spec.rb +33 -34
- data/spec/resolver_helper.rb +10 -27
- data/spec/spec_helper.rb +21 -7
- metadata +36 -21
- data/doc/DevDNSd/ApplicationMethods.html +0 -125
- data/doc/DevDNSd/ApplicationMethods/System/ClassMethods.html +0 -538
- data/spec/coverage_helper.rb +0 -20
@@ -1,538 +0,0 @@
|
|
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: DevDNSd::ApplicationMethods::System::ClassMethods
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.4
|
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#!DevDNSd/ApplicationMethods/System/ClassMethods.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 (C)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../../DevDNSd.html" title="DevDNSd (module)">DevDNSd</a></span></span> » <span class='title'><span class='object_link'><a href="../../ApplicationMethods.html" title="DevDNSd::ApplicationMethods (module)">ApplicationMethods</a></span></span> » <span class='title'><span class='object_link'><a href="../System.html" title="DevDNSd::ApplicationMethods::System (module)">System</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">ClassMethods</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>Module: DevDNSd::ApplicationMethods::System::ClassMethods
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/devdnsd/application.rb</dd>
|
83
|
-
|
84
|
-
</dl>
|
85
|
-
<div class="clear"></div>
|
86
|
-
|
87
|
-
<h2>Overview</h2><div class="docstring">
|
88
|
-
<div class="discussion">
|
89
|
-
<p>Class methods.</p>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
<div class="tags">
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<h2>
|
106
|
-
Instance Method Summary
|
107
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
108
|
-
</h2>
|
109
|
-
|
110
|
-
<ul class="summary">
|
111
|
-
|
112
|
-
<li class="public ">
|
113
|
-
<span class="summary_signature">
|
114
|
-
|
115
|
-
<a href="#daemon_name-instance_method" title="#daemon_name (instance method)">- (String) <strong>daemon_name</strong> </a>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
</span>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<span class="summary_desc"><div class='inline'><p>Returns the name of the daemon.</p>
|
130
|
-
</div></span>
|
131
|
-
|
132
|
-
</li>
|
133
|
-
|
134
|
-
|
135
|
-
<li class="public ">
|
136
|
-
<span class="summary_signature">
|
137
|
-
|
138
|
-
<a href="#log_directory-instance_method" title="#log_directory (instance method)">- (String) <strong>log_directory</strong> </a>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
</span>
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
<span class="summary_desc"><div class='inline'><p>Returns the standard location of the log file.</p>
|
153
|
-
</div></span>
|
154
|
-
|
155
|
-
</li>
|
156
|
-
|
157
|
-
|
158
|
-
<li class="public ">
|
159
|
-
<span class="summary_signature">
|
160
|
-
|
161
|
-
<a href="#log_file_path-instance_method" title="#log_file_path (instance method)">- (String) <strong>log_file_path</strong> </a>
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
</span>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<span class="summary_desc"><div class='inline'><p>Returns the complete path of the log file.</p>
|
176
|
-
</div></span>
|
177
|
-
|
178
|
-
</li>
|
179
|
-
|
180
|
-
|
181
|
-
<li class="public ">
|
182
|
-
<span class="summary_signature">
|
183
|
-
|
184
|
-
<a href="#process_file_path-instance_method" title="#process_file_path (instance method)">- (String) <strong>process_file_path</strong> </a>
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
</span>
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
<span class="summary_desc"><div class='inline'><p>Returns the complete path of the PID file.</p>
|
199
|
-
</div></span>
|
200
|
-
|
201
|
-
</li>
|
202
|
-
|
203
|
-
|
204
|
-
<li class="public ">
|
205
|
-
<span class="summary_signature">
|
206
|
-
|
207
|
-
<a href="#working_directory-instance_method" title="#working_directory (instance method)">- (String) <strong>working_directory</strong> </a>
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
(also: #runtime_directory)
|
212
|
-
|
213
|
-
</span>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
<span class="summary_desc"><div class='inline'><p>Returns the standard location of the PID file.</p>
|
224
|
-
</div></span>
|
225
|
-
|
226
|
-
</li>
|
227
|
-
|
228
|
-
|
229
|
-
</ul>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
<div id="instance_method_details" class="method_details_list">
|
235
|
-
<h2>Instance Method Details</h2>
|
236
|
-
|
237
|
-
|
238
|
-
<div class="method_details first">
|
239
|
-
<h3 class="signature first" id="daemon_name-instance_method">
|
240
|
-
|
241
|
-
- (<tt>String</tt>) <strong>daemon_name</strong>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
</h3><div class="docstring">
|
248
|
-
<div class="discussion">
|
249
|
-
<p>Returns the name of the daemon.</p>
|
250
|
-
|
251
|
-
|
252
|
-
</div>
|
253
|
-
</div>
|
254
|
-
<div class="tags">
|
255
|
-
|
256
|
-
<p class="tag_title">Returns:</p>
|
257
|
-
<ul class="return">
|
258
|
-
|
259
|
-
<li>
|
260
|
-
|
261
|
-
|
262
|
-
<span class='type'>(<tt>String</tt>)</span>
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
—
|
267
|
-
<div class='inline'><p>The name of the daemon.</p>
|
268
|
-
</div>
|
269
|
-
|
270
|
-
</li>
|
271
|
-
|
272
|
-
</ul>
|
273
|
-
|
274
|
-
</div><table class="source_code">
|
275
|
-
<tr>
|
276
|
-
<td>
|
277
|
-
<pre class="lines">
|
278
|
-
|
279
|
-
|
280
|
-
20
|
281
|
-
21
|
282
|
-
22</pre>
|
283
|
-
</td>
|
284
|
-
<td>
|
285
|
-
<pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 20</span>
|
286
|
-
|
287
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_daemon_name'>daemon_name</span>
|
288
|
-
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_pid_file'>pid_file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.pid</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
289
|
-
<span class='kw'>end</span></pre>
|
290
|
-
</td>
|
291
|
-
</tr>
|
292
|
-
</table>
|
293
|
-
</div>
|
294
|
-
|
295
|
-
<div class="method_details ">
|
296
|
-
<h3 class="signature " id="log_directory-instance_method">
|
297
|
-
|
298
|
-
- (<tt>String</tt>) <strong>log_directory</strong>
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
</h3><div class="docstring">
|
305
|
-
<div class="discussion">
|
306
|
-
<p>Returns the standard location of the log file.</p>
|
307
|
-
|
308
|
-
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
<div class="tags">
|
312
|
-
|
313
|
-
<p class="tag_title">Returns:</p>
|
314
|
-
<ul class="return">
|
315
|
-
|
316
|
-
<li>
|
317
|
-
|
318
|
-
|
319
|
-
<span class='type'>(<tt>String</tt>)</span>
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
—
|
324
|
-
<div class='inline'><p>The standard location of the log file.</p>
|
325
|
-
</div>
|
326
|
-
|
327
|
-
</li>
|
328
|
-
|
329
|
-
</ul>
|
330
|
-
|
331
|
-
</div><table class="source_code">
|
332
|
-
<tr>
|
333
|
-
<td>
|
334
|
-
<pre class="lines">
|
335
|
-
|
336
|
-
|
337
|
-
49
|
338
|
-
50
|
339
|
-
51</pre>
|
340
|
-
</td>
|
341
|
-
<td>
|
342
|
-
<pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 49</span>
|
343
|
-
|
344
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_log_directory'>log_directory</span>
|
345
|
-
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_log_file'>log_file</span><span class='rparen'>)</span>
|
346
|
-
<span class='kw'>end</span></pre>
|
347
|
-
</td>
|
348
|
-
</tr>
|
349
|
-
</table>
|
350
|
-
</div>
|
351
|
-
|
352
|
-
<div class="method_details ">
|
353
|
-
<h3 class="signature " id="log_file_path-instance_method">
|
354
|
-
|
355
|
-
- (<tt>String</tt>) <strong>log_file_path</strong>
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
</h3><div class="docstring">
|
362
|
-
<div class="discussion">
|
363
|
-
<p>Returns the complete path of the log file.</p>
|
364
|
-
|
365
|
-
|
366
|
-
</div>
|
367
|
-
</div>
|
368
|
-
<div class="tags">
|
369
|
-
|
370
|
-
<p class="tag_title">Returns:</p>
|
371
|
-
<ul class="return">
|
372
|
-
|
373
|
-
<li>
|
374
|
-
|
375
|
-
|
376
|
-
<span class='type'>(<tt>String</tt>)</span>
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
—
|
381
|
-
<div class='inline'><p>The complete path of the log file.</p>
|
382
|
-
</div>
|
383
|
-
|
384
|
-
</li>
|
385
|
-
|
386
|
-
</ul>
|
387
|
-
|
388
|
-
</div><table class="source_code">
|
389
|
-
<tr>
|
390
|
-
<td>
|
391
|
-
<pre class="lines">
|
392
|
-
|
393
|
-
|
394
|
-
42
|
395
|
-
43
|
396
|
-
44</pre>
|
397
|
-
</td>
|
398
|
-
<td>
|
399
|
-
<pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 42</span>
|
400
|
-
|
401
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_log_file_path'>log_file_path</span>
|
402
|
-
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_log_file'>log_file</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="process_file_path-instance_method">
|
411
|
-
|
412
|
-
- (<tt>String</tt>) <strong>process_file_path</strong>
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
</h3><div class="docstring">
|
419
|
-
<div class="discussion">
|
420
|
-
<p>Returns the complete path of the PID file.</p>
|
421
|
-
|
422
|
-
|
423
|
-
</div>
|
424
|
-
</div>
|
425
|
-
<div class="tags">
|
426
|
-
|
427
|
-
<p class="tag_title">Returns:</p>
|
428
|
-
<ul class="return">
|
429
|
-
|
430
|
-
<li>
|
431
|
-
|
432
|
-
|
433
|
-
<span class='type'>(<tt>String</tt>)</span>
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
—
|
438
|
-
<div class='inline'><p>The complete path of the PID file.</p>
|
439
|
-
</div>
|
440
|
-
|
441
|
-
</li>
|
442
|
-
|
443
|
-
</ul>
|
444
|
-
|
445
|
-
</div><table class="source_code">
|
446
|
-
<tr>
|
447
|
-
<td>
|
448
|
-
<pre class="lines">
|
449
|
-
|
450
|
-
|
451
|
-
35
|
452
|
-
36
|
453
|
-
37</pre>
|
454
|
-
</td>
|
455
|
-
<td>
|
456
|
-
<pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 35</span>
|
457
|
-
|
458
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_process_file_path'>process_file_path</span>
|
459
|
-
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_pid_file'>pid_file</span>
|
460
|
-
<span class='kw'>end</span></pre>
|
461
|
-
</td>
|
462
|
-
</tr>
|
463
|
-
</table>
|
464
|
-
</div>
|
465
|
-
|
466
|
-
<div class="method_details ">
|
467
|
-
<h3 class="signature " id="working_directory-instance_method">
|
468
|
-
|
469
|
-
- (<tt>String</tt>) <strong>working_directory</strong>
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
<span class="aliases">Also known as:
|
474
|
-
<span class="names"><span id='runtime_directory-instance_method'>runtime_directory</span></span>
|
475
|
-
</span>
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
</h3><div class="docstring">
|
480
|
-
<div class="discussion">
|
481
|
-
<p>Returns the standard location of the PID file.</p>
|
482
|
-
|
483
|
-
|
484
|
-
</div>
|
485
|
-
</div>
|
486
|
-
<div class="tags">
|
487
|
-
|
488
|
-
<p class="tag_title">Returns:</p>
|
489
|
-
<ul class="return">
|
490
|
-
|
491
|
-
<li>
|
492
|
-
|
493
|
-
|
494
|
-
<span class='type'>(<tt>String</tt>)</span>
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
—
|
499
|
-
<div class='inline'><p>The standard location of the PID file.</p>
|
500
|
-
</div>
|
501
|
-
|
502
|
-
</li>
|
503
|
-
|
504
|
-
</ul>
|
505
|
-
|
506
|
-
</div><table class="source_code">
|
507
|
-
<tr>
|
508
|
-
<td>
|
509
|
-
<pre class="lines">
|
510
|
-
|
511
|
-
|
512
|
-
27
|
513
|
-
28
|
514
|
-
29</pre>
|
515
|
-
</td>
|
516
|
-
<td>
|
517
|
-
<pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 27</span>
|
518
|
-
|
519
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_working_directory'>working_directory</span>
|
520
|
-
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_pid_file'>pid_file</span><span class='rparen'>)</span>
|
521
|
-
<span class='kw'>end</span></pre>
|
522
|
-
</td>
|
523
|
-
</tr>
|
524
|
-
</table>
|
525
|
-
</div>
|
526
|
-
|
527
|
-
</div>
|
528
|
-
|
529
|
-
</div>
|
530
|
-
|
531
|
-
<div id="footer">
|
532
|
-
Generated on Sat Mar 29 11:53:13 2014 by
|
533
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
534
|
-
0.8.7.4 (ruby-2.1.0).
|
535
|
-
</div>
|
536
|
-
|
537
|
-
</body>
|
538
|
-
</html>
|