inetmgr 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/README.rdoc +159 -0
  2. data/RELEASE-NOTES.rdoc +35 -0
  3. data/doc/Application.html +177 -0
  4. data/doc/ApplicationPool.html +177 -0
  5. data/doc/AutoStartProvider.html +177 -0
  6. data/doc/BindingInformation.html +349 -0
  7. data/doc/Configuration.html +283 -0
  8. data/doc/IisConfiguration.html +383 -0
  9. data/doc/IisObject.html +484 -0
  10. data/doc/IisObjectCollection.html +534 -0
  11. data/doc/Inetmgr.html +179 -0
  12. data/doc/Inetmgr/InetmgrTask.html +338 -0
  13. data/doc/Object.html +254 -0
  14. data/doc/PeriodicRestart.html +177 -0
  15. data/doc/ProcessModel.html +192 -0
  16. data/doc/README_rdoc.html +114 -0
  17. data/doc/RSpecExtensions.html +257 -0
  18. data/doc/Recycling.html +177 -0
  19. data/doc/Site.html +228 -0
  20. data/doc/SiteConfiguration.html +269 -0
  21. data/doc/SiteLimit.html +177 -0
  22. data/doc/VirtualDirectory.html +177 -0
  23. data/doc/images/brick.png +0 -0
  24. data/doc/images/brick_link.png +0 -0
  25. data/doc/images/bug.png +0 -0
  26. data/doc/images/bullet_black.png +0 -0
  27. data/doc/images/bullet_toggle_minus.png +0 -0
  28. data/doc/images/bullet_toggle_plus.png +0 -0
  29. data/doc/images/date.png +0 -0
  30. data/doc/images/find.png +0 -0
  31. data/doc/images/loadingAnimation.gif +0 -0
  32. data/doc/images/macFFBgHack.png +0 -0
  33. data/doc/images/package.png +0 -0
  34. data/doc/images/page_green.png +0 -0
  35. data/doc/images/page_white_text.png +0 -0
  36. data/doc/images/page_white_width.png +0 -0
  37. data/doc/images/plugin.png +0 -0
  38. data/doc/images/ruby.png +0 -0
  39. data/doc/images/tag_green.png +0 -0
  40. data/doc/images/wrench.png +0 -0
  41. data/doc/images/wrench_orange.png +0 -0
  42. data/doc/images/zoom.png +0 -0
  43. data/doc/index.html +166 -0
  44. data/doc/js/darkfish.js +116 -0
  45. data/doc/js/jquery.js +32 -0
  46. data/doc/js/quicksearch.js +114 -0
  47. data/doc/js/thickbox-compressed.js +10 -0
  48. data/doc/rdoc.css +706 -0
  49. data/inetmgr.gemspec +21 -0
  50. data/lib/inetmgr.rb +30 -0
  51. data/lib/inetmgr/configuration.rb +23 -0
  52. data/lib/inetmgr/iis_configuration.rb +36 -0
  53. data/lib/inetmgr/iis_object.rb +85 -0
  54. data/lib/inetmgr/iis_object/application.rb +11 -0
  55. data/lib/inetmgr/iis_object/application_pool.rb +19 -0
  56. data/lib/inetmgr/iis_object/auto_start_provider.rb +3 -0
  57. data/lib/inetmgr/iis_object/binding_information.rb +26 -0
  58. data/lib/inetmgr/iis_object/periodic_restart.rb +3 -0
  59. data/lib/inetmgr/iis_object/process_model.rb +18 -0
  60. data/lib/inetmgr/iis_object/recycling.rb +5 -0
  61. data/lib/inetmgr/iis_object/site.rb +24 -0
  62. data/lib/inetmgr/iis_object/site_limit.rb +7 -0
  63. data/lib/inetmgr/iis_object/virtual_directory.rb +5 -0
  64. data/lib/inetmgr/iis_object_collection.rb +51 -0
  65. data/lib/inetmgr/site_configuration.rb +34 -0
  66. data/lib/rake/inetmgrtask.rb +74 -0
  67. data/lib/string.rb +5 -0
  68. data/nbproject/private/config.properties +0 -0
  69. data/nbproject/private/private.properties +4 -0
  70. data/nbproject/private/private.xml +4 -0
  71. data/nbproject/private/rake-d.txt +2 -0
  72. data/nbproject/project.properties +10 -0
  73. data/nbproject/project.xml +16 -0
  74. data/spec/application_pool_spec.rb +120 -0
  75. data/spec/application_spec.rb +38 -0
  76. data/spec/auto_start_provider_spec.rb +25 -0
  77. data/spec/bingin_information_spec.rb +21 -0
  78. data/spec/iis_configuration_spec.rb +35 -0
  79. data/spec/site_app_settings_spec.rb +61 -0
  80. data/spec/site_configuration_spec.rb +24 -0
  81. data/spec/site_connection_strings_spec.rb +17 -0
  82. data/spec/site_spec.rb +34 -0
  83. data/spec/site_validation_settings_spec.rb +18 -0
  84. data/spec/spec_env.rb +22 -0
  85. data/spec/string_spec.rb +16 -0
  86. data/spec/virtual_directory_spec.rb +1 -0
  87. data/test/create_site.rb +26 -0
  88. data/test/print_iis_config.rb +56 -0
  89. data/test/rakefile.rb +27 -0
  90. metadata +156 -0
@@ -0,0 +1,484 @@
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
+