boris 1.0.0.beta.1
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.
- data/LICENSE.md +9 -0
- data/README.md +94 -0
- data/boris.gemspec +28 -0
- data/doc/Array.html +437 -0
- data/doc/Boris.html +230 -0
- data/doc/Boris/ConnectionAlreadyActive.html +123 -0
- data/doc/Boris/ConnectionFailed.html +127 -0
- data/doc/Boris/Connector.html +794 -0
- data/doc/Boris/InvalidCredentials.html +131 -0
- data/doc/Boris/InvalidOption.html +123 -0
- data/doc/Boris/InvalidTargetName.html +123 -0
- data/doc/Boris/Lumberjack.html +466 -0
- data/doc/Boris/MissingCredentials.html +123 -0
- data/doc/Boris/NoActiveConnection.html +123 -0
- data/doc/Boris/NoProfileDetected.html +123 -0
- data/doc/Boris/Options.html +783 -0
- data/doc/Boris/Profiles.html +117 -0
- data/doc/Boris/Profiles/Linux.html +1151 -0
- data/doc/Boris/Profiles/RedHat.html +875 -0
- data/doc/Boris/Profiles/Solaris.html +1230 -0
- data/doc/Boris/Profiles/Structure.html +2050 -0
- data/doc/Boris/Profiles/UNIX.html +893 -0
- data/doc/Boris/Profiles/Windows.html +1846 -0
- data/doc/Boris/Profiles/Windows/Windows2003.html +304 -0
- data/doc/Boris/Profiles/Windows/Windows2008.html +379 -0
- data/doc/Boris/Profiles/Windows/Windows2012.html +304 -0
- data/doc/Boris/SNMPConnector.html +512 -0
- data/doc/Boris/SSHConnector.html +633 -0
- data/doc/Boris/Target.html +2002 -0
- data/doc/Boris/WMIConnector.html +1134 -0
- data/doc/BorisLogger.html +217 -0
- data/doc/Hash.html +195 -0
- data/doc/String.html +1246 -0
- data/doc/_index.html +420 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.README.html +183 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +183 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1468 -0
- data/doc/top-level-namespace.html +126 -0
- data/lib/boris.rb +30 -0
- data/lib/boris/connectors.rb +47 -0
- data/lib/boris/connectors/snmp.rb +56 -0
- data/lib/boris/connectors/ssh.rb +110 -0
- data/lib/boris/connectors/wmi.rb +186 -0
- data/lib/boris/errors.rb +17 -0
- data/lib/boris/helpers/array.rb +63 -0
- data/lib/boris/helpers/constants.rb +20 -0
- data/lib/boris/helpers/hash.rb +8 -0
- data/lib/boris/helpers/scrubber.rb +51 -0
- data/lib/boris/helpers/string.rb +130 -0
- data/lib/boris/lumberjack.rb +47 -0
- data/lib/boris/options.rb +86 -0
- data/lib/boris/profiles/linux/redhat.rb +77 -0
- data/lib/boris/profiles/linux_core.rb +216 -0
- data/lib/boris/profiles/unix/solaris.rb +307 -0
- data/lib/boris/profiles/unix_core.rb +85 -0
- data/lib/boris/profiles/windows/windows2003.rb +15 -0
- data/lib/boris/profiles/windows/windows2008.rb +23 -0
- data/lib/boris/profiles/windows/windows2012.rb +15 -0
- data/lib/boris/profiles/windows_core.rb +530 -0
- data/lib/boris/structure.rb +167 -0
- data/lib/boris/target.rb +340 -0
- data/test/connector_tests/test_snmp.rb +35 -0
- data/test/connector_tests/test_ssh.rb +51 -0
- data/test/connector_tests/test_wmi.rb +129 -0
- data/test/helper_tests/test_array.rb +25 -0
- data/test/helper_tests/test_hash.rb +10 -0
- data/test/helper_tests/test_string.rb +136 -0
- data/test/profile_tests/test_core_skeleton +107 -0
- data/test/profile_tests/test_linux_core.rb +331 -0
- data/test/profile_tests/test_redhat.rb +134 -0
- data/test/profile_tests/test_solaris.rb +523 -0
- data/test/profile_tests/test_unix_core.rb +117 -0
- data/test/profile_tests/test_windows.rb +536 -0
- data/test/setup_tests.rb +14 -0
- data/test/test_all.rb +8 -0
- data/test/test_options.rb +44 -0
- data/test/test_structure.rb +136 -0
- data/test/test_target.rb +146 -0
- metadata +241 -0
@@ -0,0 +1,304 @@
|
|
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: Boris::Profiles::Windows::Windows2003
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.3
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../../';
|
20
|
+
framesUrl = "../../../frames.html#!" + escape(window.location.href);
|
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 (W)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../../Boris.html" title="Boris (module)">Boris</a></span></span> » <span class='title'><span class='object_link'><a href="../../Profiles.html" title="Boris::Profiles (module)">Profiles</a></span></span> » <span class='title'><span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Windows</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Windows2003</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: Boris::Profiles::Windows::Windows2003
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
<dt class="r1">Includes:</dt>
|
79
|
+
<dd class="r1"><span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Boris::Profiles::Windows</a></span></dd>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/boris/profiles/windows/windows2003.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
|
92
|
+
<h2>Constant Summary</h2>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<h2>Constant Summary</h2>
|
98
|
+
|
99
|
+
<h3 class="inherited">Constants included
|
100
|
+
from <span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Boris::Profiles::Windows</a></span></h3>
|
101
|
+
<p class="inherited"><span class='object_link'><a href="../Windows.html#APP32_KEYPATH-constant" title="Boris::Profiles::Windows::APP32_KEYPATH (constant)">APP32_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#APP64_KEYPATH-constant" title="Boris::Profiles::Windows::APP64_KEYPATH (constant)">APP64_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#DUPLEX_REG_VALS-constant" title="Boris::Profiles::Windows::DUPLEX_REG_VALS (constant)">DUPLEX_REG_VALS</a></span>, <span class='object_link'><a href="../Windows.html#IIS_KEYPATH-constant" title="Boris::Profiles::Windows::IIS_KEYPATH (constant)">IIS_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#NIC_CFG_KEYPATH-constant" title="Boris::Profiles::Windows::NIC_CFG_KEYPATH (constant)">NIC_CFG_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#ORACLE_KEYPATH-constant" title="Boris::Profiles::Windows::ORACLE_KEYPATH (constant)">ORACLE_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#TCPIP_CFG_KEYPATH-constant" title="Boris::Profiles::Windows::TCPIP_CFG_KEYPATH (constant)">TCPIP_CFG_KEYPATH</a></span></p>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<h2>Instance Attribute Summary</h2>
|
107
|
+
|
108
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="../Structure.html" title="Boris::Profiles::Structure (module)">Structure</a></span></h3>
|
109
|
+
<p class="inherited"><span class='object_link'><a href="../Structure.html#file_systems-instance_method" title="Boris::Profiles::Structure#file_systems (method)">#file_systems</a></span>, <span class='object_link'><a href="../Structure.html#hardware-instance_method" title="Boris::Profiles::Structure#hardware (method)">#hardware</a></span>, <span class='object_link'><a href="../Structure.html#hosted_shares-instance_method" title="Boris::Profiles::Structure#hosted_shares (method)">#hosted_shares</a></span>, <span class='object_link'><a href="../Structure.html#installed_applications-instance_method" title="Boris::Profiles::Structure#installed_applications (method)">#installed_applications</a></span>, <span class='object_link'><a href="../Structure.html#installed_patches-instance_method" title="Boris::Profiles::Structure#installed_patches (method)">#installed_patches</a></span>, <span class='object_link'><a href="../Structure.html#installed_services-instance_method" title="Boris::Profiles::Structure#installed_services (method)">#installed_services</a></span>, <span class='object_link'><a href="../Structure.html#local_user_groups-instance_method" title="Boris::Profiles::Structure#local_user_groups (method)">#local_user_groups</a></span>, <span class='object_link'><a href="../Structure.html#network_id-instance_method" title="Boris::Profiles::Structure#network_id (method)">#network_id</a></span>, <span class='object_link'><a href="../Structure.html#network_interfaces-instance_method" title="Boris::Profiles::Structure#network_interfaces (method)">#network_interfaces</a></span>, <span class='object_link'><a href="../Structure.html#operating_system-instance_method" title="Boris::Profiles::Structure#operating_system (method)">#operating_system</a></span></p>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="../../Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></h3>
|
114
|
+
<p class="inherited"><span class='object_link'><a href="../../Lumberjack.html#logger-instance_method" title="Boris::Lumberjack#logger (method)">#logger</a></span></p>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<h2>
|
119
|
+
Class Method Summary
|
120
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
121
|
+
</h2>
|
122
|
+
|
123
|
+
<ul class="summary">
|
124
|
+
|
125
|
+
<li class="public ">
|
126
|
+
<span class="summary_signature">
|
127
|
+
|
128
|
+
<a href="#connection_type-class_method" title="connection_type (class method)">+ (Object) <strong>connection_type</strong> </a>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</span>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
|
146
|
+
|
147
|
+
<li class="public ">
|
148
|
+
<span class="summary_signature">
|
149
|
+
|
150
|
+
<a href="#matches_target%3F-class_method" title="matches_target? (class method)">+ (Boolean) <strong>matches_target?</strong>(connector) </a>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
</span>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
165
|
+
|
166
|
+
</li>
|
167
|
+
|
168
|
+
|
169
|
+
</ul>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Boris::Profiles::Windows</a></span></h3>
|
182
|
+
<p class="inherited"><span class='object_link'><a href="../Windows.html#get_file_systems-instance_method" title="Boris::Profiles::Windows#get_file_systems (method)">#get_file_systems</a></span>, <span class='object_link'><a href="../Windows.html#get_hardware-instance_method" title="Boris::Profiles::Windows#get_hardware (method)">#get_hardware</a></span>, <span class='object_link'><a href="../Windows.html#get_hosted_shares-instance_method" title="Boris::Profiles::Windows#get_hosted_shares (method)">#get_hosted_shares</a></span>, <span class='object_link'><a href="../Windows.html#get_installed_applications-instance_method" title="Boris::Profiles::Windows#get_installed_applications (method)">#get_installed_applications</a></span>, <span class='object_link'><a href="../Windows.html#get_installed_patches-instance_method" title="Boris::Profiles::Windows#get_installed_patches (method)">#get_installed_patches</a></span>, <span class='object_link'><a href="../Windows.html#get_installed_services-instance_method" title="Boris::Profiles::Windows#get_installed_services (method)">#get_installed_services</a></span>, <span class='object_link'><a href="../Windows.html#get_local_user_groups-instance_method" title="Boris::Profiles::Windows#get_local_user_groups (method)">#get_local_user_groups</a></span>, <span class='object_link'><a href="../Windows.html#get_network_id-instance_method" title="Boris::Profiles::Windows#get_network_id (method)">#get_network_id</a></span>, <span class='object_link'><a href="../Windows.html#get_network_interfaces-instance_method" title="Boris::Profiles::Windows#get_network_interfaces (method)">#get_network_interfaces</a></span>, <span class='object_link'><a href="../Windows.html#get_operating_system-instance_method" title="Boris::Profiles::Windows#get_operating_system (method)">#get_operating_system</a></span>, <span class='object_link'><a href="../Windows.html#get_product_key-instance_method" title="Boris::Profiles::Windows#get_product_key (method)">#get_product_key</a></span>, <span class='object_link'><a href="../Windows.html#get_username-instance_method" title="Boris::Profiles::Windows#get_username (method)">#get_username</a></span></p>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Structure.html" title="Boris::Profiles::Structure (module)">Structure</a></span></h3>
|
193
|
+
<p class="inherited"><span class='object_link'><a href="../Structure.html#file_system_template-instance_method" title="Boris::Profiles::Structure#file_system_template (method)">#file_system_template</a></span>, <span class='object_link'><a href="../Structure.html#get_file_systems-instance_method" title="Boris::Profiles::Structure#get_file_systems (method)">#get_file_systems</a></span>, <span class='object_link'><a href="../Structure.html#get_hardware-instance_method" title="Boris::Profiles::Structure#get_hardware (method)">#get_hardware</a></span>, <span class='object_link'><a href="../Structure.html#get_hosted_shares-instance_method" title="Boris::Profiles::Structure#get_hosted_shares (method)">#get_hosted_shares</a></span>, <span class='object_link'><a href="../Structure.html#get_installed_applications-instance_method" title="Boris::Profiles::Structure#get_installed_applications (method)">#get_installed_applications</a></span>, <span class='object_link'><a href="../Structure.html#get_installed_patches-instance_method" title="Boris::Profiles::Structure#get_installed_patches (method)">#get_installed_patches</a></span>, <span class='object_link'><a href="../Structure.html#get_installed_services-instance_method" title="Boris::Profiles::Structure#get_installed_services (method)">#get_installed_services</a></span>, <span class='object_link'><a href="../Structure.html#get_local_user_groups-instance_method" title="Boris::Profiles::Structure#get_local_user_groups (method)">#get_local_user_groups</a></span>, <span class='object_link'><a href="../Structure.html#get_network_id-instance_method" title="Boris::Profiles::Structure#get_network_id (method)">#get_network_id</a></span>, <span class='object_link'><a href="../Structure.html#get_network_interfaces-instance_method" title="Boris::Profiles::Structure#get_network_interfaces (method)">#get_network_interfaces</a></span>, <span class='object_link'><a href="../Structure.html#get_operating_system-instance_method" title="Boris::Profiles::Structure#get_operating_system (method)">#get_operating_system</a></span>, <span class='object_link'><a href="../Structure.html#hosted_share_template-instance_method" title="Boris::Profiles::Structure#hosted_share_template (method)">#hosted_share_template</a></span>, <span class='object_link'><a href="../Structure.html#installed_application_template-instance_method" title="Boris::Profiles::Structure#installed_application_template (method)">#installed_application_template</a></span>, <span class='object_link'><a href="../Structure.html#installed_patch_template-instance_method" title="Boris::Profiles::Structure#installed_patch_template (method)">#installed_patch_template</a></span>, <span class='object_link'><a href="../Structure.html#installed_service_template-instance_method" title="Boris::Profiles::Structure#installed_service_template (method)">#installed_service_template</a></span>, <span class='object_link'><a href="../Structure.html#local_user_groups_template-instance_method" title="Boris::Profiles::Structure#local_user_groups_template (method)">#local_user_groups_template</a></span>, <span class='object_link'><a href="../Structure.html#network_interface_template-instance_method" title="Boris::Profiles::Structure#network_interface_template (method)">#network_interface_template</a></span>, <span class='object_link'><a href="../Structure.html#scrub_data%21-instance_method" title="Boris::Profiles::Structure#scrub_data! (method)">#scrub_data!</a></span></p>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../../Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></h3>
|
204
|
+
<p class="inherited"><span class='object_link'><a href="../../Lumberjack.html#debug-instance_method" title="Boris::Lumberjack#debug (method)">#debug</a></span>, <span class='object_link'><a href="../../Lumberjack.html#error-instance_method" title="Boris::Lumberjack#error (method)">#error</a></span>, <span class='object_link'><a href="../../Lumberjack.html#fatal-instance_method" title="Boris::Lumberjack#fatal (method)">#fatal</a></span>, <span class='object_link'><a href="../../Lumberjack.html#info-instance_method" title="Boris::Lumberjack#info (method)">#info</a></span>, <span class='object_link'><a href="../../Lumberjack.html#warn-instance_method" title="Boris::Lumberjack#warn (method)">#warn</a></span></p>
|
205
|
+
|
206
|
+
|
207
|
+
<div id="class_method_details" class="method_details_list">
|
208
|
+
<h2>Class Method Details</h2>
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method_details first">
|
212
|
+
<h3 class="signature first" id="connection_type-class_method">
|
213
|
+
|
214
|
+
+ (<tt>Object</tt>) <strong>connection_type</strong>
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
</h3><table class="source_code">
|
221
|
+
<tr>
|
222
|
+
<td>
|
223
|
+
<pre class="lines">
|
224
|
+
|
225
|
+
|
226
|
+
7
|
227
|
+
8
|
228
|
+
9</pre>
|
229
|
+
</td>
|
230
|
+
<td>
|
231
|
+
<pre class="code"><span class="info file"># File 'lib/boris/profiles/windows/windows2003.rb', line 7</span>
|
232
|
+
|
233
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_connection_type'>connection_type</span>
|
234
|
+
<span class='const'>Windows</span><span class='period'>.</span><span class='id identifier rubyid_connection_type'>connection_type</span>
|
235
|
+
<span class='kw'>end</span></pre>
|
236
|
+
</td>
|
237
|
+
</tr>
|
238
|
+
</table>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div class="method_details ">
|
242
|
+
<h3 class="signature " id="matches_target?-class_method">
|
243
|
+
|
244
|
+
+ (<tt>Boolean</tt>) <strong>matches_target?</strong>(connector)
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
</h3><div class="docstring">
|
251
|
+
<div class="discussion">
|
252
|
+
|
253
|
+
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
<div class="tags">
|
257
|
+
|
258
|
+
<p class="tag_title">Returns:</p>
|
259
|
+
<ul class="return">
|
260
|
+
|
261
|
+
<li>
|
262
|
+
|
263
|
+
|
264
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
</li>
|
269
|
+
|
270
|
+
</ul>
|
271
|
+
|
272
|
+
</div><table class="source_code">
|
273
|
+
<tr>
|
274
|
+
<td>
|
275
|
+
<pre class="lines">
|
276
|
+
|
277
|
+
|
278
|
+
11
|
279
|
+
12
|
280
|
+
13</pre>
|
281
|
+
</td>
|
282
|
+
<td>
|
283
|
+
<pre class="code"><span class="info file"># File 'lib/boris/profiles/windows/windows2003.rb', line 11</span>
|
284
|
+
|
285
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_matches_target?'>matches_target?</span><span class='lparen'>(</span><span class='id identifier rubyid_connector'>connector</span><span class='rparen'>)</span>
|
286
|
+
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_connector'>connector</span><span class='period'>.</span><span class='id identifier rubyid_value_at'>value_at</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SELECT Name FROM Win32_OperatingSystem</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>2003</span><span class='regexp_end'>/</span></span>
|
287
|
+
<span class='kw'>end</span></pre>
|
288
|
+
</td>
|
289
|
+
</tr>
|
290
|
+
</table>
|
291
|
+
</div>
|
292
|
+
|
293
|
+
</div>
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
<div id="footer">
|
298
|
+
Generated on Sun Feb 3 16:32:42 2013 by
|
299
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
|
+
0.8.3 (ruby-1.9.3).
|
301
|
+
</div>
|
302
|
+
|
303
|
+
</body>
|
304
|
+
</html>
|
@@ -0,0 +1,379 @@
|
|
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: Boris::Profiles::Windows::Windows2008
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.3
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../../';
|
20
|
+
framesUrl = "../../../frames.html#!" + escape(window.location.href);
|
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 (W)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../../Boris.html" title="Boris (module)">Boris</a></span></span> » <span class='title'><span class='object_link'><a href="../../Profiles.html" title="Boris::Profiles (module)">Profiles</a></span></span> » <span class='title'><span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Windows</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Windows2008</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: Boris::Profiles::Windows::Windows2008
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
<dt class="r1">Includes:</dt>
|
79
|
+
<dd class="r1"><span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Boris::Profiles::Windows</a></span></dd>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/boris/profiles/windows/windows2008.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
|
92
|
+
<h2>Constant Summary</h2>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<h2>Constant Summary</h2>
|
98
|
+
|
99
|
+
<h3 class="inherited">Constants included
|
100
|
+
from <span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Boris::Profiles::Windows</a></span></h3>
|
101
|
+
<p class="inherited"><span class='object_link'><a href="../Windows.html#APP32_KEYPATH-constant" title="Boris::Profiles::Windows::APP32_KEYPATH (constant)">APP32_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#APP64_KEYPATH-constant" title="Boris::Profiles::Windows::APP64_KEYPATH (constant)">APP64_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#DUPLEX_REG_VALS-constant" title="Boris::Profiles::Windows::DUPLEX_REG_VALS (constant)">DUPLEX_REG_VALS</a></span>, <span class='object_link'><a href="../Windows.html#IIS_KEYPATH-constant" title="Boris::Profiles::Windows::IIS_KEYPATH (constant)">IIS_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#NIC_CFG_KEYPATH-constant" title="Boris::Profiles::Windows::NIC_CFG_KEYPATH (constant)">NIC_CFG_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#ORACLE_KEYPATH-constant" title="Boris::Profiles::Windows::ORACLE_KEYPATH (constant)">ORACLE_KEYPATH</a></span>, <span class='object_link'><a href="../Windows.html#TCPIP_CFG_KEYPATH-constant" title="Boris::Profiles::Windows::TCPIP_CFG_KEYPATH (constant)">TCPIP_CFG_KEYPATH</a></span></p>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<h2>Instance Attribute Summary</h2>
|
107
|
+
|
108
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="../Structure.html" title="Boris::Profiles::Structure (module)">Structure</a></span></h3>
|
109
|
+
<p class="inherited"><span class='object_link'><a href="../Structure.html#file_systems-instance_method" title="Boris::Profiles::Structure#file_systems (method)">#file_systems</a></span>, <span class='object_link'><a href="../Structure.html#hardware-instance_method" title="Boris::Profiles::Structure#hardware (method)">#hardware</a></span>, <span class='object_link'><a href="../Structure.html#hosted_shares-instance_method" title="Boris::Profiles::Structure#hosted_shares (method)">#hosted_shares</a></span>, <span class='object_link'><a href="../Structure.html#installed_applications-instance_method" title="Boris::Profiles::Structure#installed_applications (method)">#installed_applications</a></span>, <span class='object_link'><a href="../Structure.html#installed_patches-instance_method" title="Boris::Profiles::Structure#installed_patches (method)">#installed_patches</a></span>, <span class='object_link'><a href="../Structure.html#installed_services-instance_method" title="Boris::Profiles::Structure#installed_services (method)">#installed_services</a></span>, <span class='object_link'><a href="../Structure.html#local_user_groups-instance_method" title="Boris::Profiles::Structure#local_user_groups (method)">#local_user_groups</a></span>, <span class='object_link'><a href="../Structure.html#network_id-instance_method" title="Boris::Profiles::Structure#network_id (method)">#network_id</a></span>, <span class='object_link'><a href="../Structure.html#network_interfaces-instance_method" title="Boris::Profiles::Structure#network_interfaces (method)">#network_interfaces</a></span>, <span class='object_link'><a href="../Structure.html#operating_system-instance_method" title="Boris::Profiles::Structure#operating_system (method)">#operating_system</a></span></p>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="../../Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></h3>
|
114
|
+
<p class="inherited"><span class='object_link'><a href="../../Lumberjack.html#logger-instance_method" title="Boris::Lumberjack#logger (method)">#logger</a></span></p>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<h2>
|
119
|
+
Class Method Summary
|
120
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
121
|
+
</h2>
|
122
|
+
|
123
|
+
<ul class="summary">
|
124
|
+
|
125
|
+
<li class="public ">
|
126
|
+
<span class="summary_signature">
|
127
|
+
|
128
|
+
<a href="#connection_type-class_method" title="connection_type (class method)">+ (Object) <strong>connection_type</strong> </a>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</span>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
|
146
|
+
|
147
|
+
<li class="public ">
|
148
|
+
<span class="summary_signature">
|
149
|
+
|
150
|
+
<a href="#matches_target%3F-class_method" title="matches_target? (class method)">+ (Boolean) <strong>matches_target?</strong>(connector) </a>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
</span>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
165
|
+
|
166
|
+
</li>
|
167
|
+
|
168
|
+
|
169
|
+
</ul>
|
170
|
+
|
171
|
+
<h2>
|
172
|
+
Instance Method Summary
|
173
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
174
|
+
</h2>
|
175
|
+
|
176
|
+
<ul class="summary">
|
177
|
+
|
178
|
+
<li class="public ">
|
179
|
+
<span class="summary_signature">
|
180
|
+
|
181
|
+
<a href="#get_operating_system-instance_method" title="#get_operating_system (instance method)">- (Object) <strong>get_operating_system</strong> </a>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
</span>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
196
|
+
|
197
|
+
</li>
|
198
|
+
|
199
|
+
|
200
|
+
</ul>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Windows.html" title="Boris::Profiles::Windows (module)">Boris::Profiles::Windows</a></span></h3>
|
213
|
+
<p class="inherited"><span class='object_link'><a href="../Windows.html#get_file_systems-instance_method" title="Boris::Profiles::Windows#get_file_systems (method)">#get_file_systems</a></span>, <span class='object_link'><a href="../Windows.html#get_hardware-instance_method" title="Boris::Profiles::Windows#get_hardware (method)">#get_hardware</a></span>, <span class='object_link'><a href="../Windows.html#get_hosted_shares-instance_method" title="Boris::Profiles::Windows#get_hosted_shares (method)">#get_hosted_shares</a></span>, <span class='object_link'><a href="../Windows.html#get_installed_applications-instance_method" title="Boris::Profiles::Windows#get_installed_applications (method)">#get_installed_applications</a></span>, <span class='object_link'><a href="../Windows.html#get_installed_patches-instance_method" title="Boris::Profiles::Windows#get_installed_patches (method)">#get_installed_patches</a></span>, <span class='object_link'><a href="../Windows.html#get_installed_services-instance_method" title="Boris::Profiles::Windows#get_installed_services (method)">#get_installed_services</a></span>, <span class='object_link'><a href="../Windows.html#get_local_user_groups-instance_method" title="Boris::Profiles::Windows#get_local_user_groups (method)">#get_local_user_groups</a></span>, <span class='object_link'><a href="../Windows.html#get_network_id-instance_method" title="Boris::Profiles::Windows#get_network_id (method)">#get_network_id</a></span>, <span class='object_link'><a href="../Windows.html#get_network_interfaces-instance_method" title="Boris::Profiles::Windows#get_network_interfaces (method)">#get_network_interfaces</a></span>, <span class='object_link'><a href="../Windows.html#get_product_key-instance_method" title="Boris::Profiles::Windows#get_product_key (method)">#get_product_key</a></span>, <span class='object_link'><a href="../Windows.html#get_username-instance_method" title="Boris::Profiles::Windows#get_username (method)">#get_username</a></span></p>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Structure.html" title="Boris::Profiles::Structure (module)">Structure</a></span></h3>
|
224
|
+
<p class="inherited"><span class='object_link'><a href="../Structure.html#file_system_template-instance_method" title="Boris::Profiles::Structure#file_system_template (method)">#file_system_template</a></span>, <span class='object_link'><a href="../Structure.html#get_file_systems-instance_method" title="Boris::Profiles::Structure#get_file_systems (method)">#get_file_systems</a></span>, <span class='object_link'><a href="../Structure.html#get_hardware-instance_method" title="Boris::Profiles::Structure#get_hardware (method)">#get_hardware</a></span>, <span class='object_link'><a href="../Structure.html#get_hosted_shares-instance_method" title="Boris::Profiles::Structure#get_hosted_shares (method)">#get_hosted_shares</a></span>, <span class='object_link'><a href="../Structure.html#get_installed_applications-instance_method" title="Boris::Profiles::Structure#get_installed_applications (method)">#get_installed_applications</a></span>, <span class='object_link'><a href="../Structure.html#get_installed_patches-instance_method" title="Boris::Profiles::Structure#get_installed_patches (method)">#get_installed_patches</a></span>, <span class='object_link'><a href="../Structure.html#get_installed_services-instance_method" title="Boris::Profiles::Structure#get_installed_services (method)">#get_installed_services</a></span>, <span class='object_link'><a href="../Structure.html#get_local_user_groups-instance_method" title="Boris::Profiles::Structure#get_local_user_groups (method)">#get_local_user_groups</a></span>, <span class='object_link'><a href="../Structure.html#get_network_id-instance_method" title="Boris::Profiles::Structure#get_network_id (method)">#get_network_id</a></span>, <span class='object_link'><a href="../Structure.html#get_network_interfaces-instance_method" title="Boris::Profiles::Structure#get_network_interfaces (method)">#get_network_interfaces</a></span>, <span class='object_link'><a href="../Structure.html#hosted_share_template-instance_method" title="Boris::Profiles::Structure#hosted_share_template (method)">#hosted_share_template</a></span>, <span class='object_link'><a href="../Structure.html#installed_application_template-instance_method" title="Boris::Profiles::Structure#installed_application_template (method)">#installed_application_template</a></span>, <span class='object_link'><a href="../Structure.html#installed_patch_template-instance_method" title="Boris::Profiles::Structure#installed_patch_template (method)">#installed_patch_template</a></span>, <span class='object_link'><a href="../Structure.html#installed_service_template-instance_method" title="Boris::Profiles::Structure#installed_service_template (method)">#installed_service_template</a></span>, <span class='object_link'><a href="../Structure.html#local_user_groups_template-instance_method" title="Boris::Profiles::Structure#local_user_groups_template (method)">#local_user_groups_template</a></span>, <span class='object_link'><a href="../Structure.html#network_interface_template-instance_method" title="Boris::Profiles::Structure#network_interface_template (method)">#network_interface_template</a></span>, <span class='object_link'><a href="../Structure.html#scrub_data%21-instance_method" title="Boris::Profiles::Structure#scrub_data! (method)">#scrub_data!</a></span></p>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../../Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></h3>
|
235
|
+
<p class="inherited"><span class='object_link'><a href="../../Lumberjack.html#debug-instance_method" title="Boris::Lumberjack#debug (method)">#debug</a></span>, <span class='object_link'><a href="../../Lumberjack.html#error-instance_method" title="Boris::Lumberjack#error (method)">#error</a></span>, <span class='object_link'><a href="../../Lumberjack.html#fatal-instance_method" title="Boris::Lumberjack#fatal (method)">#fatal</a></span>, <span class='object_link'><a href="../../Lumberjack.html#info-instance_method" title="Boris::Lumberjack#info (method)">#info</a></span>, <span class='object_link'><a href="../../Lumberjack.html#warn-instance_method" title="Boris::Lumberjack#warn (method)">#warn</a></span></p>
|
236
|
+
|
237
|
+
|
238
|
+
<div id="class_method_details" class="method_details_list">
|
239
|
+
<h2>Class Method Details</h2>
|
240
|
+
|
241
|
+
|
242
|
+
<div class="method_details first">
|
243
|
+
<h3 class="signature first" id="connection_type-class_method">
|
244
|
+
|
245
|
+
+ (<tt>Object</tt>) <strong>connection_type</strong>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</h3><table class="source_code">
|
252
|
+
<tr>
|
253
|
+
<td>
|
254
|
+
<pre class="lines">
|
255
|
+
|
256
|
+
|
257
|
+
7
|
258
|
+
8
|
259
|
+
9</pre>
|
260
|
+
</td>
|
261
|
+
<td>
|
262
|
+
<pre class="code"><span class="info file"># File 'lib/boris/profiles/windows/windows2008.rb', line 7</span>
|
263
|
+
|
264
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_connection_type'>connection_type</span>
|
265
|
+
<span class='const'>Windows</span><span class='period'>.</span><span class='id identifier rubyid_connection_type'>connection_type</span>
|
266
|
+
<span class='kw'>end</span></pre>
|
267
|
+
</td>
|
268
|
+
</tr>
|
269
|
+
</table>
|
270
|
+
</div>
|
271
|
+
|
272
|
+
<div class="method_details ">
|
273
|
+
<h3 class="signature " id="matches_target?-class_method">
|
274
|
+
|
275
|
+
+ (<tt>Boolean</tt>) <strong>matches_target?</strong>(connector)
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
</h3><div class="docstring">
|
282
|
+
<div class="discussion">
|
283
|
+
|
284
|
+
|
285
|
+
</div>
|
286
|
+
</div>
|
287
|
+
<div class="tags">
|
288
|
+
|
289
|
+
<p class="tag_title">Returns:</p>
|
290
|
+
<ul class="return">
|
291
|
+
|
292
|
+
<li>
|
293
|
+
|
294
|
+
|
295
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
</li>
|
300
|
+
|
301
|
+
</ul>
|
302
|
+
|
303
|
+
</div><table class="source_code">
|
304
|
+
<tr>
|
305
|
+
<td>
|
306
|
+
<pre class="lines">
|
307
|
+
|
308
|
+
|
309
|
+
11
|
310
|
+
12
|
311
|
+
13</pre>
|
312
|
+
</td>
|
313
|
+
<td>
|
314
|
+
<pre class="code"><span class="info file"># File 'lib/boris/profiles/windows/windows2008.rb', line 11</span>
|
315
|
+
|
316
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_matches_target?'>matches_target?</span><span class='lparen'>(</span><span class='id identifier rubyid_connector'>connector</span><span class='rparen'>)</span>
|
317
|
+
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_connector'>connector</span><span class='period'>.</span><span class='id identifier rubyid_value_at'>value_at</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SELECT Name FROM Win32_OperatingSystem</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>2008</span><span class='regexp_end'>/</span></span>
|
318
|
+
<span class='kw'>end</span></pre>
|
319
|
+
</td>
|
320
|
+
</tr>
|
321
|
+
</table>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
</div>
|
325
|
+
|
326
|
+
<div id="instance_method_details" class="method_details_list">
|
327
|
+
<h2>Instance Method Details</h2>
|
328
|
+
|
329
|
+
|
330
|
+
<div class="method_details first">
|
331
|
+
<h3 class="signature first" id="get_operating_system-instance_method">
|
332
|
+
|
333
|
+
- (<tt>Object</tt>) <strong>get_operating_system</strong>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
</h3><table class="source_code">
|
340
|
+
<tr>
|
341
|
+
<td>
|
342
|
+
<pre class="lines">
|
343
|
+
|
344
|
+
|
345
|
+
15
|
346
|
+
16
|
347
|
+
17
|
348
|
+
18
|
349
|
+
19
|
350
|
+
20
|
351
|
+
21</pre>
|
352
|
+
</td>
|
353
|
+
<td>
|
354
|
+
<pre class="code"><span class="info file"># File 'lib/boris/profiles/windows/windows2008.rb', line 15</span>
|
355
|
+
|
356
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_operating_system'>get_operating_system</span>
|
357
|
+
<span class='kw'>super</span>
|
358
|
+
|
359
|
+
<span class='comment'># grab the 'features' from win2008 servers, as it's only available on this version
|
360
|
+
</span> <span class='comment'># and already deprecated as of win2012
|
361
|
+
</span> <span class='ivar'>@operating_system</span><span class='lbracket'>[</span><span class='symbol'>:features</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@connector</span><span class='period'>.</span><span class='id identifier rubyid_values_at'>values_at</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SELECT Name FROM Win32_ServerFeature</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbrace'>}</span>
|
362
|
+
<span class='kw'>end</span></pre>
|
363
|
+
</td>
|
364
|
+
</tr>
|
365
|
+
</table>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
</div>
|
369
|
+
|
370
|
+
</div>
|
371
|
+
|
372
|
+
<div id="footer">
|
373
|
+
Generated on Sun Feb 3 16:32:42 2013 by
|
374
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
375
|
+
0.8.3 (ruby-1.9.3).
|
376
|
+
</div>
|
377
|
+
|
378
|
+
</body>
|
379
|
+
</html>
|