inetmgr 0.6.0 → 0.7.0

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 (77) hide show
  1. data/Gemfile +2 -0
  2. data/RELEASE-NOTES.rdoc +5 -1
  3. data/inetmgr.gemspec +4 -1
  4. data/lib/inetmgr/configuration.rb +24 -21
  5. data/lib/inetmgr/iis_configuration.rb +18 -8
  6. data/lib/inetmgr/iis_object.rb +6 -3
  7. data/lib/inetmgr/iis_object/application.rb +5 -3
  8. data/lib/inetmgr/iis_object/application_pool.rb +5 -3
  9. data/lib/inetmgr/iis_object/auto_start_provider.rb +3 -1
  10. data/lib/inetmgr/iis_object/binding_information.rb +2 -0
  11. data/lib/inetmgr/iis_object/periodic_restart.rb +6 -3
  12. data/lib/inetmgr/iis_object/process_model.rb +21 -18
  13. data/lib/inetmgr/iis_object/recycling.rb +8 -5
  14. data/lib/inetmgr/iis_object/site.rb +3 -1
  15. data/lib/inetmgr/iis_object/site_limit.rb +10 -7
  16. data/lib/inetmgr/iis_object/site_logfile.rb +4 -1
  17. data/lib/inetmgr/iis_object/virtual_directory.rb +3 -1
  18. data/lib/inetmgr/iis_object_collection.rb +7 -4
  19. data/lib/inetmgr/site_configuration.rb +37 -34
  20. data/lib/string.rb +4 -4
  21. data/spec/application_pool_spec.rb +1 -1
  22. data/spec/bingin_information_spec.rb +21 -21
  23. data/spec/site_app_settings_spec.rb +3 -3
  24. data/spec/site_configuration_spec.rb +1 -1
  25. data/spec/site_connection_strings_spec.rb +1 -1
  26. data/spec/site_spec.rb +16 -4
  27. data/spec/site_validation_settings_spec.rb +1 -1
  28. data/spec/spec_env.rb +1 -5
  29. data/spec/string_spec.rb +16 -16
  30. data/test/print_iis_config.rb +0 -4
  31. metadata +53 -89
  32. data/doc/Application.html +0 -177
  33. data/doc/ApplicationPool.html +0 -177
  34. data/doc/AutoStartProvider.html +0 -177
  35. data/doc/BindingInformation.html +0 -349
  36. data/doc/Configuration.html +0 -283
  37. data/doc/IisConfiguration.html +0 -383
  38. data/doc/IisObject.html +0 -484
  39. data/doc/IisObjectCollection.html +0 -534
  40. data/doc/Inetmgr.html +0 -179
  41. data/doc/Inetmgr/InetmgrTask.html +0 -338
  42. data/doc/Object.html +0 -254
  43. data/doc/PeriodicRestart.html +0 -177
  44. data/doc/ProcessModel.html +0 -192
  45. data/doc/README_rdoc.html +0 -114
  46. data/doc/RSpecExtensions.html +0 -257
  47. data/doc/Recycling.html +0 -177
  48. data/doc/Site.html +0 -228
  49. data/doc/SiteConfiguration.html +0 -269
  50. data/doc/SiteLimit.html +0 -177
  51. data/doc/VirtualDirectory.html +0 -177
  52. data/doc/images/brick.png +0 -0
  53. data/doc/images/brick_link.png +0 -0
  54. data/doc/images/bug.png +0 -0
  55. data/doc/images/bullet_black.png +0 -0
  56. data/doc/images/bullet_toggle_minus.png +0 -0
  57. data/doc/images/bullet_toggle_plus.png +0 -0
  58. data/doc/images/date.png +0 -0
  59. data/doc/images/find.png +0 -0
  60. data/doc/images/loadingAnimation.gif +0 -0
  61. data/doc/images/macFFBgHack.png +0 -0
  62. data/doc/images/package.png +0 -0
  63. data/doc/images/page_green.png +0 -0
  64. data/doc/images/page_white_text.png +0 -0
  65. data/doc/images/page_white_width.png +0 -0
  66. data/doc/images/plugin.png +0 -0
  67. data/doc/images/ruby.png +0 -0
  68. data/doc/images/tag_green.png +0 -0
  69. data/doc/images/wrench.png +0 -0
  70. data/doc/images/wrench_orange.png +0 -0
  71. data/doc/images/zoom.png +0 -0
  72. data/doc/index.html +0 -166
  73. data/doc/js/darkfish.js +0 -116
  74. data/doc/js/jquery.js +0 -32
  75. data/doc/js/quicksearch.js +0 -114
  76. data/doc/js/thickbox-compressed.js +0 -10
  77. data/doc/rdoc.css +0 -706
@@ -1,484 +0,0 @@
1
- <?xml version="1.0" encoding="IBM437"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=IBM437" http-equiv="Content-Type" />
7
-
8
- <title>Class: IisObject</title>
9
-
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="./js/jquery.js" type="text/javascript"
13
- charset="utf-8"></script>
14
- <script src="./js/thickbox-compressed.js" type="text/javascript"
15
- charset="utf-8"></script>
16
- <script src="./js/quicksearch.js" type="text/javascript"
17
- charset="utf-8"></script>
18
- <script src="./js/darkfish.js" type="text/javascript"
19
- charset="utf-8"></script>
20
-
21
- </head>
22
- <body class="class">
23
-
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="file-metadata">
36
- <div id="file-list-section" class="section">
37
- <h3 class="section-header">In Files</h3>
38
- <div class="section-body">
39
- <ul>
40
-
41
- <li><a href="./lib/inetmgr/iis_object_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/inetmgr/iis_object.rb">lib/inetmgr/iis_object.rb</a></li>
43
-
44
- </ul>
45
- </div>
46
- </div>
47
-
48
-
49
- </div>
50
-
51
- <div id="class-metadata">
52
-
53
- <!-- Parent Class -->
54
-
55
- <div id="parent-class-section" class="section">
56
- <h3 class="section-header">Parent</h3>
57
-
58
- <p class="link"><a href="Object.html">Object</a></p>
59
-
60
- </div>
61
-
62
-
63
- <!-- Namespace Contents -->
64
-
65
-
66
- <!-- Method Quickref -->
67
-
68
- <div id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
70
- <ul class="link-list">
71
-
72
- <li><a href="#method-c-child">::child</a></li>
73
-
74
- <li><a href="#method-c-children">::children</a></li>
75
-
76
- <li><a href="#method-c-collection">::collection</a></li>
77
-
78
- <li><a href="#method-c-new">::new</a></li>
79
-
80
- <li><a href="#method-c-prop">::prop</a></li>
81
-
82
- <li><a href="#method-i-invoke_method">#invoke_method</a></li>
83
-
84
- </ul>
85
- </div>
86
-
87
-
88
- <!-- Included Modules -->
89
-
90
- </div>
91
-
92
- <div id="project-metadata">
93
-
94
-
95
- <div id="fileindex-section" class="section project-section">
96
- <h3 class="section-header">Files</h3>
97
- <ul>
98
-
99
- <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
100
-
101
- <li class="file"><a href="./RELEASE-NOTES_rdoc.html">RELEASE-NOTES.rdoc</a></li>
102
-
103
- <li class="file"><a href="./nbproject/private/rake-d_txt.html">rake-d.txt</a></li>
104
-
105
- </ul>
106
- </div>
107
-
108
-
109
- <div id="classindex-section" class="section project-section">
110
- <h3 class="section-header">Class/Module Index
111
- <span class="search-toggle"><img src="./images/find.png"
112
- height="16" width="16" alt="[+]"
113
- title="show/hide quicksearch" /></span></h3>
114
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
115
- <fieldset>
116
- <legend>Quicksearch</legend>
117
- <input type="text" name="quicksearch" value=""
118
- class="quicksearch-field" />
119
- </fieldset>
120
- </form>
121
-
122
- <ul class="link-list">
123
-
124
- <li><a href="./Inetmgr.html">Inetmgr</a></li>
125
-
126
- <li><a href="./Inetmgr/InetmgrTask.html">Inetmgr::InetmgrTask</a></li>
127
-
128
- <li><a href="./Application.html">Application</a></li>
129
-
130
- <li><a href="./ApplicationPool.html">ApplicationPool</a></li>
131
-
132
- <li><a href="./AutoStartProvider.html">AutoStartProvider</a></li>
133
-
134
- <li><a href="./BindingInformation.html">BindingInformation</a></li>
135
-
136
- <li><a href="./Configuration.html">Configuration</a></li>
137
-
138
- <li><a href="./IisConfiguration.html">IisConfiguration</a></li>
139
-
140
- <li><a href="./IisObject.html">IisObject</a></li>
141
-
142
- <li><a href="./IisObjectCollection.html">IisObjectCollection</a></li>
143
-
144
- <li><a href="./Object.html">Object</a></li>
145
-
146
- <li><a href="./PeriodicRestart.html">PeriodicRestart</a></li>
147
-
148
- <li><a href="./ProcessModel.html">ProcessModel</a></li>
149
-
150
- <li><a href="./RSpecExtensions.html">RSpecExtensions</a></li>
151
-
152
- <li><a href="./Recycling.html">Recycling</a></li>
153
-
154
- <li><a href="./Site.html">Site</a></li>
155
-
156
- <li><a href="./SiteConfiguration.html">SiteConfiguration</a></li>
157
-
158
- <li><a href="./SiteLimit.html">SiteLimit</a></li>
159
-
160
- <li><a href="./VirtualDirectory.html">VirtualDirectory</a></li>
161
-
162
- </ul>
163
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
164
- </div>
165
-
166
-
167
- </div>
168
- </div>
169
-
170
- <div id="documentation">
171
- <h1 class="class">IisObject</h1>
172
-
173
- <div id="description">
174
-
175
- <p>Represents an IIS configuration element. Serves as the base class for all
176
- IIS artifacts like <a href="Site.html">Site</a>, <a
177
- href="Application.html">Application</a> and <a
178
- href="VirtualDirectory.html">VirtualDirectory</a>.</p>
179
-
180
- </div>
181
-
182
- <!-- Constants -->
183
-
184
- <div id="constants-list" class="section">
185
- <h3 class="section-header">Constants</h3>
186
- <dl>
187
-
188
- <dt><a name="Value">Value</a></dt>
189
-
190
- <dd class="description"></dd>
191
-
192
-
193
- </dl>
194
- </div>
195
-
196
-
197
- <!-- Attributes -->
198
-
199
-
200
- <!-- Methods -->
201
-
202
- <div id="public-class-method-details" class="method-section section">
203
- <h3 class="section-header">Public Class Methods</h3>
204
-
205
-
206
- <div id="child-method" class="method-detail ">
207
- <a name="method-c-child"></a>
208
-
209
-
210
- <div class="method-heading">
211
- <span class="method-name">child</span><span
212
- class="method-args">(name, element_name, type)</span>
213
- <span class="method-click-advice">click to toggle source</span>
214
- </div>
215
-
216
-
217
- <div class="method-description">
218
-
219
-
220
-
221
-
222
-
223
- <div class="method-source-code"
224
- id="child-source">
225
- <pre>
226
- <span class="ruby-comment"># File lib/inetmgr/iis_object.rb, line 52</span>
227
- def self.child name, element_name, type
228
- define_method(name.to_s) do
229
- type.new <span class="ruby-ivar">@element</span>.<span class="ruby-constant">ChildElements</span>.<span class="ruby-constant">Item</span>(element_name.to_s)
230
- end
231
- end</pre>
232
- </div>
233
-
234
- </div>
235
-
236
-
237
-
238
-
239
- </div>
240
-
241
-
242
- <div id="children-method" class="method-detail ">
243
- <a name="method-c-children"></a>
244
-
245
-
246
- <div class="method-heading">
247
- <span class="method-name">children</span><span
248
- class="method-args">(name, item_name, type)</span>
249
- <span class="method-click-advice">click to toggle source</span>
250
- </div>
251
-
252
-
253
- <div class="method-description">
254
-
255
- <p>Creates a collection property with the specified name.</p>
256
-
257
- <h4>Parameters</h4>
258
- <ul><li>
259
- <p><tt>name</tt> - The name of the property to create</p>
260
- </li><li>
261
- <p><tt>item_name</tt> - The name of the element in the configuration schema.</p>
262
- </li><li>
263
- <p><tt>type</tt> - The collection's item type.</p>
264
- </li></ul>
265
-
266
-
267
-
268
- <div class="method-source-code"
269
- id="children-source">
270
- <pre>
271
- <span class="ruby-comment"># File lib/inetmgr/iis_object.rb, line 46</span>
272
- def self.children name, item_name, type
273
- define_method(name.to_s) do
274
- <span class="ruby-constant">IisObjectCollection</span>.new <span class="ruby-ivar">@element</span>.<span class="ruby-constant">ChildElements</span>.<span class="ruby-constant">Item</span>(name.to_s).<span class="ruby-constant">Collection</span>, item_name.to_s, type
275
- end
276
- end</pre>
277
- </div>
278
-
279
- </div>
280
-
281
-
282
-
283
-
284
- </div>
285
-
286
-
287
- <div id="collection-method" class="method-detail ">
288
- <a name="method-c-collection"></a>
289
-
290
-
291
- <div class="method-heading">
292
- <span class="method-name">collection</span><span
293
- class="method-args">(name, item_name, type)</span>
294
- <span class="method-click-advice">click to toggle source</span>
295
- </div>
296
-
297
-
298
- <div class="method-description">
299
-
300
- <p>Creates a collection property with the specified name.</p>
301
-
302
- <h4>Parameters</h4>
303
- <ul><li>
304
- <p><tt>name</tt> - The name of the property to create</p>
305
- </li><li>
306
- <p><tt>type</tt> - The collection's item type.</p>
307
- </li></ul>
308
-
309
-
310
-
311
- <div class="method-source-code"
312
- id="collection-source">
313
- <pre>
314
- <span class="ruby-comment"># File lib/inetmgr/iis_object.rb, line 34</span>
315
- def self.collection name, item_name, type
316
- define_method(name.to_s) do
317
- <span class="ruby-constant">IisObjectCollection</span>.new <span class="ruby-ivar">@element</span>.<span class="ruby-constant">Collection</span>, item_name.to_s, type
318
- end
319
- end</pre>
320
- </div>
321
-
322
- </div>
323
-
324
-
325
-
326
-
327
- </div>
328
-
329
-
330
- <div id="new-method" class="method-detail ">
331
- <a name="method-c-new"></a>
332
-
333
-
334
- <div class="method-heading">
335
- <span class="method-name">new</span><span
336
- class="method-args">(element)</span>
337
- <span class="method-click-advice">click to toggle source</span>
338
- </div>
339
-
340
-
341
- <div class="method-description">
342
-
343
-
344
-
345
-
346
-
347
- <div class="method-source-code"
348
- id="new-source">
349
- <pre>
350
- <span class="ruby-comment"># File lib/inetmgr/iis_object.rb, line 5</span>
351
- def initialize element
352
- <span class="ruby-ivar">@element</span> = element
353
- end</pre>
354
- </div>
355
-
356
- </div>
357
-
358
-
359
-
360
-
361
- </div>
362
-
363
-
364
- <div id="prop-method" class="method-detail ">
365
- <a name="method-c-prop"></a>
366
-
367
-
368
- <div class="method-heading">
369
- <span class="method-name">prop</span><span
370
- class="method-args">(name, actual_name, setter = lambda { |v| v })</span>
371
- <span class="method-click-advice">click to toggle source</span>
372
- </div>
373
-
374
-
375
- <div class="method-description">
376
-
377
- <p>Creates a property with the specified name.</p>
378
-
379
- <h4>Parameters</h4>
380
- <ul><li>
381
- <p><tt>name</tt> - The name of the property to create</p>
382
- </li><li>
383
- <p><tt>actual_name</tt> - Optional, The actual name of the attribute or</p>
384
- </li></ul>
385
-
386
- <p>element in the IIS configuration schema.</p>
387
- <ul><li>
388
- <p><tt>setter</tt> - Optional, a lambda or proc to convert the property</p>
389
- </li></ul>
390
-
391
- <p>value to a value in the IIS configuration schema.</p>
392
- <ul><li>
393
- <p><tt>reader</tt> - Optional, a lambda or proc to convert the IIS</p>
394
- </li></ul>
395
-
396
- <p>configuration value to the desired property value.</p>
397
-
398
-
399
-
400
- <div class="method-source-code"
401
- id="prop-source">
402
- <pre>
403
- <span class="ruby-comment"># File lib/inetmgr/iis_object.rb, line 19</span>
404
- def self.prop name, actual_name, setter = lambda { |v| v }, reader = lambda { |v| v }
405
- define_method(name.to_s) do
406
- reader.call(<span class="ruby-ivar">@element</span>.<span class="ruby-constant">Properties</span>.<span class="ruby-constant">Item</span>(actual_name.to_s).<span class="ruby-constant">Value</span>)
407
- end
408
-
409
- define_method(&quot;#{name.to_s}=&quot;) do |val|
410
- <span class="ruby-ivar">@element</span>.<span class="ruby-constant">Properties</span>.<span class="ruby-constant">Item</span>(actual_name.to_s).<span class="ruby-constant">Value</span> = setter.call(val)
411
- end
412
- end</pre>
413
- </div>
414
-
415
- </div>
416
-
417
-
418
-
419
-
420
- </div>
421
-
422
-
423
- </div>
424
-
425
- <div id="public-instance-method-details" class="method-section section">
426
- <h3 class="section-header">Public Instance Methods</h3>
427
-
428
-
429
- <div id="invoke_method-method" class="method-detail ">
430
- <a name="method-i-invoke_method"></a>
431
-
432
-
433
- <div class="method-heading">
434
- <span class="method-name">invoke_method</span><span
435
- class="method-args">(name)</span>
436
- <span class="method-click-advice">click to toggle source</span>
437
- </div>
438
-
439
-
440
- <div class="method-description">
441
-
442
-
443
-
444
-
445
-
446
- <div class="method-source-code"
447
- id="invoke_method-source">
448
- <pre>
449
- <span class="ruby-comment"># File lib/inetmgr/iis_object.rb, line 58</span>
450
- def invoke_method name
451
- method = <span class="ruby-ivar">@element</span>.<span class="ruby-constant">Methods</span>.<span class="ruby-constant">Item</span>(name.to_s).<span class="ruby-constant">CreateInstance</span>()
452
-
453
- <span class="ruby-comment"># TODO: if block_given? change method_missing to change this:
454
- <span class="ruby-comment"># method.Input.Properties.Item(&quot;key&quot;).Value = value
455
- <span class="ruby-comment"># in to this:
456
- <span class="ruby-comment"># method.key = value
457
-
458
- yield method if block_given?
459
- method.<span class="ruby-constant">Execute</span>()
460
- end</pre>
461
- </div>
462
-
463
- </div>
464
-
465
-
466
-
467
-
468
- </div>
469
-
470
-
471
- </div>
472
-
473
-
474
- </div>
475
-
476
- <div id="validator-badges">
477
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
478
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
479
- Rdoc Generator</a> 2</small>.</p>
480
- </div>
481
-
482
- </body>
483
- </html>
484
-