vermillion-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.hound.yml +2 -0
  4. data/.rubocop.yml +320 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +26 -0
  7. data/README.md +55 -0
  8. data/Rakefile +10 -0
  9. data/bin/setup +7 -0
  10. data/bin/vermillion +16 -0
  11. data/doc/ChangeBranchTest.html +240 -0
  12. data/doc/ConfigurationTest.html +277 -0
  13. data/doc/CreateTest.html +240 -0
  14. data/doc/Gemfile.html +145 -0
  15. data/doc/Gemfile_lock.html +173 -0
  16. data/doc/README_md.html +216 -0
  17. data/doc/Rakefile.html +151 -0
  18. data/doc/UpdateTest.html +280 -0
  19. data/doc/Vermillion.html +272 -0
  20. data/doc/Vermillion/Cfg.html +362 -0
  21. data/doc/Vermillion/Controller.html +185 -0
  22. data/doc/Vermillion/Controller/Base.html +503 -0
  23. data/doc/Vermillion/Controller/Change.html +301 -0
  24. data/doc/Vermillion/Controller/Create.html +301 -0
  25. data/doc/Vermillion/Controller/Firstrun.html +256 -0
  26. data/doc/Vermillion/Controller/Status.html +308 -0
  27. data/doc/Vermillion/Controller/Update.html +326 -0
  28. data/doc/Vermillion/Helper.html +252 -0
  29. data/doc/Vermillion/Helper/ApiCommunication.html +307 -0
  30. data/doc/Vermillion/Helper/Endpoint.html +506 -0
  31. data/doc/Vermillion/Helper/Formatting.html +250 -0
  32. data/doc/Vermillion/Helper/Network.html +304 -0
  33. data/doc/Vermillion/Helper/Results.html +341 -0
  34. data/doc/Vermillion/Helper/Time.html +295 -0
  35. data/doc/Vermillion/Request.html +332 -0
  36. data/doc/Vermillion/Router.html +351 -0
  37. data/doc/Vermillion/Test.html +183 -0
  38. data/doc/Vermillion/Test/Base.html +260 -0
  39. data/doc/Vermillion/Utils.html +247 -0
  40. data/doc/bin/setup.html +147 -0
  41. data/doc/created.rid +33 -0
  42. data/doc/images/add.png +0 -0
  43. data/doc/images/arrow_up.png +0 -0
  44. data/doc/images/brick.png +0 -0
  45. data/doc/images/brick_link.png +0 -0
  46. data/doc/images/bug.png +0 -0
  47. data/doc/images/bullet_black.png +0 -0
  48. data/doc/images/bullet_toggle_minus.png +0 -0
  49. data/doc/images/bullet_toggle_plus.png +0 -0
  50. data/doc/images/date.png +0 -0
  51. data/doc/images/delete.png +0 -0
  52. data/doc/images/find.png +0 -0
  53. data/doc/images/loadingAnimation.gif +0 -0
  54. data/doc/images/macFFBgHack.png +0 -0
  55. data/doc/images/package.png +0 -0
  56. data/doc/images/page_green.png +0 -0
  57. data/doc/images/page_white_text.png +0 -0
  58. data/doc/images/page_white_width.png +0 -0
  59. data/doc/images/plugin.png +0 -0
  60. data/doc/images/ruby.png +0 -0
  61. data/doc/images/tag_blue.png +0 -0
  62. data/doc/images/tag_green.png +0 -0
  63. data/doc/images/transparent.png +0 -0
  64. data/doc/images/wrench.png +0 -0
  65. data/doc/images/wrench_orange.png +0 -0
  66. data/doc/images/zoom.png +0 -0
  67. data/doc/index.html +138 -0
  68. data/doc/js/darkfish.js +155 -0
  69. data/doc/js/jquery.js +4 -0
  70. data/doc/js/navigation.js +142 -0
  71. data/doc/js/search.js +94 -0
  72. data/doc/js/search_index.js +1 -0
  73. data/doc/js/searcher.js +228 -0
  74. data/doc/rdoc.css +595 -0
  75. data/doc/table_of_contents.html +255 -0
  76. data/doc/vermillion-client_gemspec.html +166 -0
  77. data/lib/client.rb +35 -0
  78. data/lib/client/config.rb +58 -0
  79. data/lib/client/controller.rb +68 -0
  80. data/lib/client/controller/change.rb +26 -0
  81. data/lib/client/controller/create.rb +26 -0
  82. data/lib/client/controller/firstrun.rb +30 -0
  83. data/lib/client/controller/status.rb +43 -0
  84. data/lib/client/controller/update.rb +26 -0
  85. data/lib/client/helper.rb +21 -0
  86. data/lib/client/helper/apicommunication.rb +78 -0
  87. data/lib/client/helper/endpoint.rb +61 -0
  88. data/lib/client/helper/formatting.rb +23 -0
  89. data/lib/client/helper/network.rb +54 -0
  90. data/lib/client/helper/results.rb +28 -0
  91. data/lib/client/helper/time.rb +33 -0
  92. data/lib/client/request.rb +22 -0
  93. data/lib/client/router.rb +56 -0
  94. data/lib/client/utils.rb +18 -0
  95. data/lib/client/version.rb +4 -0
  96. data/lib/test.rb +13 -0
  97. data/lib/test/base.rb +17 -0
  98. data/test/test_change_branch.rb +14 -0
  99. data/test/test_configuration.rb +21 -0
  100. data/test/test_create.rb +14 -0
  101. data/test/test_update.rb +24 -0
  102. data/vermillion-client.gemspec +23 -0
  103. metadata +201 -0
@@ -0,0 +1,326 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Vermillion::Controller::Update - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../index.html">Home</a>
28
+ <a href="../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/client/controller/update.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link"><a href="Base.html">Vermillion::Controller::Base</a>
65
+
66
+ </nav>
67
+
68
+ <!-- Included Modules -->
69
+ <nav id="includes-section" class="section">
70
+ <h3 class="section-header">Included Modules</h3>
71
+
72
+ <ul class="link-list">
73
+
74
+
75
+ <li><a class="include" href="../Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
76
+
77
+
78
+ </ul>
79
+ </nav>
80
+
81
+
82
+ <!-- Method Quickref -->
83
+ <nav id="method-list-section" class="section">
84
+ <h3 class="section-header">Methods</h3>
85
+
86
+ <ul class="link-list">
87
+
88
+ <li ><a href="#method-i-all">#all</a>
89
+
90
+ <li ><a href="#method-i-config">#config</a>
91
+
92
+ <li ><a href="#method-i-one">#one</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ </div>
98
+
99
+ <div id="project-metadata">
100
+ <nav id="fileindex-section" class="section project-section">
101
+ <h3 class="section-header">Pages</h3>
102
+
103
+ <ul>
104
+
105
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a>
106
+
107
+ <li class="file"><a href="../../Gemfile_lock.html">Gemfile.lock</a>
108
+
109
+ <li class="file"><a href="../../README_md.html">README</a>
110
+
111
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a>
112
+
113
+ <li class="file"><a href="../../bin/setup.html">setup</a>
114
+
115
+ <li class="file"><a href="../../vermillion-client_gemspec.html">vermillion-client.gemspec</a>
116
+
117
+ </ul>
118
+ </nav>
119
+
120
+ <nav id="classindex-section" class="section project-section">
121
+ <h3 class="section-header">Class and Module Index</h3>
122
+
123
+ <ul class="link-list">
124
+
125
+ <li><a href="../../ChangeBranchTest.html">ChangeBranchTest</a>
126
+
127
+ <li><a href="../../ConfigurationTest.html">ConfigurationTest</a>
128
+
129
+ <li><a href="../../CreateTest.html">CreateTest</a>
130
+
131
+ <li><a href="../../UpdateTest.html">UpdateTest</a>
132
+
133
+ <li><a href="../../Vermillion.html">Vermillion</a>
134
+
135
+ <li><a href="../../Vermillion/Cfg.html">Vermillion::Cfg</a>
136
+
137
+ <li><a href="../../Vermillion/Controller.html">Vermillion::Controller</a>
138
+
139
+ <li><a href="../../Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
140
+
141
+ <li><a href="../../Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
142
+
143
+ <li><a href="../../Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
144
+
145
+ <li><a href="../../Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
146
+
147
+ <li><a href="../../Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
148
+
149
+ <li><a href="../../Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
150
+
151
+ <li><a href="../../Vermillion/Helper.html">Vermillion::Helper</a>
152
+
153
+ <li><a href="../../Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
154
+
155
+ <li><a href="../../Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
156
+
157
+ <li><a href="../../Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
158
+
159
+ <li><a href="../../Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
160
+
161
+ <li><a href="../../Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
162
+
163
+ <li><a href="../../Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
164
+
165
+ <li><a href="../../Vermillion/Request.html">Vermillion::Request</a>
166
+
167
+ <li><a href="../../Vermillion/Router.html">Vermillion::Router</a>
168
+
169
+ <li><a href="../../Vermillion/Test.html">Vermillion::Test</a>
170
+
171
+ <li><a href="../../Vermillion/Test/Base.html">Vermillion::Test::Base</a>
172
+
173
+ <li><a href="../../Vermillion/Utils.html">Vermillion::Utils</a>
174
+
175
+ </ul>
176
+ </nav>
177
+
178
+ </div>
179
+ </nav>
180
+
181
+ <div id="documentation">
182
+ <h1 class="class">class Vermillion::Controller::Update</h1>
183
+
184
+ <div id="description" class="description">
185
+
186
+ </div><!-- description -->
187
+
188
+
189
+
190
+
191
+ <section id="5Buntitled-5D" class="documentation-section">
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <!-- Methods -->
201
+
202
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
203
+ <h3 class="section-header">Public Instance Methods</h3>
204
+
205
+
206
+ <div id="method-i-all" class="method-detail ">
207
+
208
+ <div class="method-heading">
209
+ <span class="method-name">all</span><span
210
+ class="method-args">()</span>
211
+
212
+ <span class="method-click-advice">click to toggle source</span>
213
+
214
+ </div>
215
+
216
+
217
+ <div class="method-description">
218
+
219
+ <p><a href="Update.html">Update</a> all sites in the manifest</p>
220
+
221
+
222
+
223
+
224
+ <div class="method-source-code" id="all-source">
225
+ <pre><span class="ruby-comment"># File lib/client/controller/update.rb, line 7</span>
226
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">all</span>
227
+ <span class="ruby-identifier">send_to_all</span>(<span class="ruby-value">:update</span>)
228
+ <span class="ruby-keyword">end</span></pre>
229
+ </div><!-- all-source -->
230
+
231
+ </div>
232
+
233
+
234
+
235
+
236
+ </div><!-- all-method -->
237
+
238
+
239
+ <div id="method-i-config" class="method-detail ">
240
+
241
+ <div class="method-heading">
242
+ <span class="method-name">config</span><span
243
+ class="method-args">(server)</span>
244
+
245
+ <span class="method-click-advice">click to toggle source</span>
246
+
247
+ </div>
248
+
249
+
250
+ <div class="method-description">
251
+
252
+ <p><a href="Update.html">Update</a> the configuration manifest for one server
253
+ Params:</p>
254
+ <dl class="rdoc-list note-list"><dt><code>server</code>
255
+ <dd>
256
+ <p>Symbol representing the server you want to update</p>
257
+ </dd></dl>
258
+
259
+
260
+
261
+
262
+ <div class="method-source-code" id="config-source">
263
+ <pre><span class="ruby-comment"># File lib/client/controller/update.rb, line 21</span>
264
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">config</span>(<span class="ruby-identifier">server</span>)
265
+ <span class="ruby-identifier">send_to_one</span>(<span class="ruby-identifier">server</span>, <span class="ruby-value">:update_config</span>)
266
+ <span class="ruby-keyword">end</span></pre>
267
+ </div><!-- config-source -->
268
+
269
+ </div>
270
+
271
+
272
+
273
+
274
+ </div><!-- config-method -->
275
+
276
+
277
+ <div id="method-i-one" class="method-detail ">
278
+
279
+ <div class="method-heading">
280
+ <span class="method-name">one</span><span
281
+ class="method-args">(server)</span>
282
+
283
+ <span class="method-click-advice">click to toggle source</span>
284
+
285
+ </div>
286
+
287
+
288
+ <div class="method-description">
289
+
290
+ <p><a href="Update.html">Update</a> just one server Params:</p>
291
+ <dl class="rdoc-list note-list"><dt><code>server</code>
292
+ <dd>
293
+ <p>Symbol representing the server you want to update</p>
294
+ </dd></dl>
295
+
296
+
297
+
298
+
299
+ <div class="method-source-code" id="one-source">
300
+ <pre><span class="ruby-comment"># File lib/client/controller/update.rb, line 14</span>
301
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">one</span>(<span class="ruby-identifier">server</span>)
302
+ <span class="ruby-identifier">send_to_one</span>(<span class="ruby-identifier">server</span>, <span class="ruby-value">:update</span>)
303
+ <span class="ruby-keyword">end</span></pre>
304
+ </div><!-- one-source -->
305
+
306
+ </div>
307
+
308
+
309
+
310
+
311
+ </div><!-- one-method -->
312
+
313
+
314
+ </section><!-- public-instance-method-details -->
315
+
316
+ </section><!-- 5Buntitled-5D -->
317
+
318
+ </div><!-- documentation -->
319
+
320
+
321
+ <footer id="validator-badges">
322
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
323
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
324
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
325
+ </footer>
326
+
@@ -0,0 +1,252 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module Vermillion::Helper - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/client/helper.rb
53
+ <li>lib/client/helper/apicommunication.rb
54
+ <li>lib/client/helper/endpoint.rb
55
+ <li>lib/client/helper/formatting.rb
56
+ <li>lib/client/helper/network.rb
57
+ <li>lib/client/helper/results.rb
58
+ <li>lib/client/helper/time.rb
59
+ </ul>
60
+ </nav>
61
+
62
+
63
+ </div>
64
+
65
+ <div id="class-metadata">
66
+
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-c-load">::load</a>
77
+
78
+ </ul>
79
+ </nav>
80
+
81
+ </div>
82
+
83
+ <div id="project-metadata">
84
+ <nav id="fileindex-section" class="section project-section">
85
+ <h3 class="section-header">Pages</h3>
86
+
87
+ <ul>
88
+
89
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
90
+
91
+ <li class="file"><a href="../Gemfile_lock.html">Gemfile.lock</a>
92
+
93
+ <li class="file"><a href="../README_md.html">README</a>
94
+
95
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
96
+
97
+ <li class="file"><a href="../bin/setup.html">setup</a>
98
+
99
+ <li class="file"><a href="../vermillion-client_gemspec.html">vermillion-client.gemspec</a>
100
+
101
+ </ul>
102
+ </nav>
103
+
104
+ <nav id="classindex-section" class="section project-section">
105
+ <h3 class="section-header">Class and Module Index</h3>
106
+
107
+ <ul class="link-list">
108
+
109
+ <li><a href="../ChangeBranchTest.html">ChangeBranchTest</a>
110
+
111
+ <li><a href="../ConfigurationTest.html">ConfigurationTest</a>
112
+
113
+ <li><a href="../CreateTest.html">CreateTest</a>
114
+
115
+ <li><a href="../UpdateTest.html">UpdateTest</a>
116
+
117
+ <li><a href="../Vermillion.html">Vermillion</a>
118
+
119
+ <li><a href="../Vermillion/Cfg.html">Vermillion::Cfg</a>
120
+
121
+ <li><a href="../Vermillion/Controller.html">Vermillion::Controller</a>
122
+
123
+ <li><a href="../Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
124
+
125
+ <li><a href="../Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
126
+
127
+ <li><a href="../Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
128
+
129
+ <li><a href="../Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
130
+
131
+ <li><a href="../Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
132
+
133
+ <li><a href="../Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
134
+
135
+ <li><a href="../Vermillion/Helper.html">Vermillion::Helper</a>
136
+
137
+ <li><a href="../Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
138
+
139
+ <li><a href="../Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
140
+
141
+ <li><a href="../Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
142
+
143
+ <li><a href="../Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
144
+
145
+ <li><a href="../Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
146
+
147
+ <li><a href="../Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
148
+
149
+ <li><a href="../Vermillion/Request.html">Vermillion::Request</a>
150
+
151
+ <li><a href="../Vermillion/Router.html">Vermillion::Router</a>
152
+
153
+ <li><a href="../Vermillion/Test.html">Vermillion::Test</a>
154
+
155
+ <li><a href="../Vermillion/Test/Base.html">Vermillion::Test::Base</a>
156
+
157
+ <li><a href="../Vermillion/Utils.html">Vermillion::Utils</a>
158
+
159
+ </ul>
160
+ </nav>
161
+
162
+ </div>
163
+ </nav>
164
+
165
+ <div id="documentation">
166
+ <h1 class="module">module Vermillion::Helper</h1>
167
+
168
+ <div id="description" class="description">
169
+
170
+ </div><!-- description -->
171
+
172
+
173
+
174
+
175
+ <section id="5Buntitled-5D" class="documentation-section">
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <!-- Methods -->
185
+
186
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
187
+ <h3 class="section-header">Public Class Methods</h3>
188
+
189
+
190
+ <div id="method-c-load" class="method-detail ">
191
+
192
+ <div class="method-heading">
193
+ <span class="method-name">load</span><span
194
+ class="method-args">(klass, args = nil)</span>
195
+
196
+ <span class="method-click-advice">click to toggle source</span>
197
+
198
+ </div>
199
+
200
+
201
+ <div class="method-description">
202
+
203
+ <p>Loads a helper class Params:</p>
204
+ <dl class="rdoc-list note-list"><dt><code>klass</code>
205
+ <dd>
206
+ <p>String representing the class helper subclass you want to load</p>
207
+ </dd><dt><code>args</code>
208
+ <dd>
209
+ <p>Optional arguments to pass to the class instance</p>
210
+ </dd></dl>
211
+
212
+
213
+
214
+
215
+ <div class="method-source-code" id="load-source">
216
+ <pre><span class="ruby-comment"># File lib/client/helper.rb, line 7</span>
217
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">args</span> = <span class="ruby-keyword">nil</span>)
218
+ <span class="ruby-identifier">klass_instance</span> = <span class="ruby-constant">Vermillion</span><span class="ruby-operator">::</span><span class="ruby-constant">Helper</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">capitalize</span>)
219
+
220
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">klass_instance</span>
221
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span>
222
+ <span class="ruby-identifier">klass_instance</span>.<span class="ruby-identifier">new</span>
223
+ <span class="ruby-keyword">else</span>
224
+ <span class="ruby-identifier">klass_instance</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>)
225
+ <span class="ruby-keyword">end</span>
226
+ <span class="ruby-keyword">else</span>
227
+ <span class="ruby-constant">Notify</span>.<span class="ruby-identifier">error</span>(<span class="ruby-node">&quot;Class not found: #{klass.capitalize}&quot;</span>)
228
+ <span class="ruby-keyword">end</span>
229
+ <span class="ruby-keyword">end</span></pre>
230
+ </div><!-- load-source -->
231
+
232
+ </div>
233
+
234
+
235
+
236
+
237
+ </div><!-- load-method -->
238
+
239
+
240
+ </section><!-- public-class-method-details -->
241
+
242
+ </section><!-- 5Buntitled-5D -->
243
+
244
+ </div><!-- documentation -->
245
+
246
+
247
+ <footer id="validator-badges">
248
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
249
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
250
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
251
+ </footer>
252
+