vermillion-client 1.0.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.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +320 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +26 -0
- data/README.md +55 -0
- data/Rakefile +10 -0
- data/bin/setup +7 -0
- data/bin/vermillion +16 -0
- data/doc/ChangeBranchTest.html +240 -0
- data/doc/ConfigurationTest.html +277 -0
- data/doc/CreateTest.html +240 -0
- data/doc/Gemfile.html +145 -0
- data/doc/Gemfile_lock.html +173 -0
- data/doc/README_md.html +216 -0
- data/doc/Rakefile.html +151 -0
- data/doc/UpdateTest.html +280 -0
- data/doc/Vermillion.html +272 -0
- data/doc/Vermillion/Cfg.html +362 -0
- data/doc/Vermillion/Controller.html +185 -0
- data/doc/Vermillion/Controller/Base.html +503 -0
- data/doc/Vermillion/Controller/Change.html +301 -0
- data/doc/Vermillion/Controller/Create.html +301 -0
- data/doc/Vermillion/Controller/Firstrun.html +256 -0
- data/doc/Vermillion/Controller/Status.html +308 -0
- data/doc/Vermillion/Controller/Update.html +326 -0
- data/doc/Vermillion/Helper.html +252 -0
- data/doc/Vermillion/Helper/ApiCommunication.html +307 -0
- data/doc/Vermillion/Helper/Endpoint.html +506 -0
- data/doc/Vermillion/Helper/Formatting.html +250 -0
- data/doc/Vermillion/Helper/Network.html +304 -0
- data/doc/Vermillion/Helper/Results.html +341 -0
- data/doc/Vermillion/Helper/Time.html +295 -0
- data/doc/Vermillion/Request.html +332 -0
- data/doc/Vermillion/Router.html +351 -0
- data/doc/Vermillion/Test.html +183 -0
- data/doc/Vermillion/Test/Base.html +260 -0
- data/doc/Vermillion/Utils.html +247 -0
- data/doc/bin/setup.html +147 -0
- data/doc/created.rid +33 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +138 -0
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +595 -0
- data/doc/table_of_contents.html +255 -0
- data/doc/vermillion-client_gemspec.html +166 -0
- data/lib/client.rb +35 -0
- data/lib/client/config.rb +58 -0
- data/lib/client/controller.rb +68 -0
- data/lib/client/controller/change.rb +26 -0
- data/lib/client/controller/create.rb +26 -0
- data/lib/client/controller/firstrun.rb +30 -0
- data/lib/client/controller/status.rb +43 -0
- data/lib/client/controller/update.rb +26 -0
- data/lib/client/helper.rb +21 -0
- data/lib/client/helper/apicommunication.rb +78 -0
- data/lib/client/helper/endpoint.rb +61 -0
- data/lib/client/helper/formatting.rb +23 -0
- data/lib/client/helper/network.rb +54 -0
- data/lib/client/helper/results.rb +28 -0
- data/lib/client/helper/time.rb +33 -0
- data/lib/client/request.rb +22 -0
- data/lib/client/router.rb +56 -0
- data/lib/client/utils.rb +18 -0
- data/lib/client/version.rb +4 -0
- data/lib/test.rb +13 -0
- data/lib/test/base.rb +17 -0
- data/test/test_change_branch.rb +14 -0
- data/test/test_configuration.rb +21 -0
- data/test/test_create.rb +14 -0
- data/test/test_update.rb +24 -0
- data/vermillion-client.gemspec +23 -0
- metadata +201 -0
@@ -0,0 +1,301 @@
|
|
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::Change - 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/change.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-branch">#branch</a>
|
89
|
+
|
90
|
+
<li class="calls-super" ><a href="#method-i-pre_exec">#pre_exec</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div id="project-metadata">
|
98
|
+
<nav id="fileindex-section" class="section project-section">
|
99
|
+
<h3 class="section-header">Pages</h3>
|
100
|
+
|
101
|
+
<ul>
|
102
|
+
|
103
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a>
|
104
|
+
|
105
|
+
<li class="file"><a href="../../Gemfile_lock.html">Gemfile.lock</a>
|
106
|
+
|
107
|
+
<li class="file"><a href="../../README_md.html">README</a>
|
108
|
+
|
109
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a>
|
110
|
+
|
111
|
+
<li class="file"><a href="../../bin/setup.html">setup</a>
|
112
|
+
|
113
|
+
<li class="file"><a href="../../vermillion-client_gemspec.html">vermillion-client.gemspec</a>
|
114
|
+
|
115
|
+
</ul>
|
116
|
+
</nav>
|
117
|
+
|
118
|
+
<nav id="classindex-section" class="section project-section">
|
119
|
+
<h3 class="section-header">Class and Module Index</h3>
|
120
|
+
|
121
|
+
<ul class="link-list">
|
122
|
+
|
123
|
+
<li><a href="../../ChangeBranchTest.html">ChangeBranchTest</a>
|
124
|
+
|
125
|
+
<li><a href="../../ConfigurationTest.html">ConfigurationTest</a>
|
126
|
+
|
127
|
+
<li><a href="../../CreateTest.html">CreateTest</a>
|
128
|
+
|
129
|
+
<li><a href="../../UpdateTest.html">UpdateTest</a>
|
130
|
+
|
131
|
+
<li><a href="../../Vermillion.html">Vermillion</a>
|
132
|
+
|
133
|
+
<li><a href="../../Vermillion/Cfg.html">Vermillion::Cfg</a>
|
134
|
+
|
135
|
+
<li><a href="../../Vermillion/Controller.html">Vermillion::Controller</a>
|
136
|
+
|
137
|
+
<li><a href="../../Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
|
138
|
+
|
139
|
+
<li><a href="../../Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
|
140
|
+
|
141
|
+
<li><a href="../../Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
|
142
|
+
|
143
|
+
<li><a href="../../Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
|
144
|
+
|
145
|
+
<li><a href="../../Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
|
146
|
+
|
147
|
+
<li><a href="../../Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
|
148
|
+
|
149
|
+
<li><a href="../../Vermillion/Helper.html">Vermillion::Helper</a>
|
150
|
+
|
151
|
+
<li><a href="../../Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
|
152
|
+
|
153
|
+
<li><a href="../../Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
|
154
|
+
|
155
|
+
<li><a href="../../Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
|
156
|
+
|
157
|
+
<li><a href="../../Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
|
158
|
+
|
159
|
+
<li><a href="../../Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
|
160
|
+
|
161
|
+
<li><a href="../../Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
|
162
|
+
|
163
|
+
<li><a href="../../Vermillion/Request.html">Vermillion::Request</a>
|
164
|
+
|
165
|
+
<li><a href="../../Vermillion/Router.html">Vermillion::Router</a>
|
166
|
+
|
167
|
+
<li><a href="../../Vermillion/Test.html">Vermillion::Test</a>
|
168
|
+
|
169
|
+
<li><a href="../../Vermillion/Test/Base.html">Vermillion::Test::Base</a>
|
170
|
+
|
171
|
+
<li><a href="../../Vermillion/Utils.html">Vermillion::Utils</a>
|
172
|
+
|
173
|
+
</ul>
|
174
|
+
</nav>
|
175
|
+
|
176
|
+
</div>
|
177
|
+
</nav>
|
178
|
+
|
179
|
+
<div id="documentation">
|
180
|
+
<h1 class="class">class Vermillion::Controller::Change</h1>
|
181
|
+
|
182
|
+
<div id="description" class="description">
|
183
|
+
|
184
|
+
</div><!-- description -->
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<!-- Methods -->
|
199
|
+
|
200
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
201
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
202
|
+
|
203
|
+
|
204
|
+
<div id="method-i-branch" class="method-detail ">
|
205
|
+
|
206
|
+
<div class="method-heading">
|
207
|
+
<span class="method-name">branch</span><span
|
208
|
+
class="method-args">(server, to = nil)</span>
|
209
|
+
|
210
|
+
<span class="method-click-advice">click to toggle source</span>
|
211
|
+
|
212
|
+
</div>
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-description">
|
216
|
+
|
217
|
+
<p><a href="Change.html">Change</a> branches on the selected server</p>
|
218
|
+
<dl class="rdoc-list note-list"><dt><code>server</code>
|
219
|
+
<dd>
|
220
|
+
<p>Symbol representing the server you want to access</p>
|
221
|
+
</dd><dt><code>to</code>
|
222
|
+
<dd>
|
223
|
+
<p>Optional symbol, what branch should we change to?</p>
|
224
|
+
</dd></dl>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-source-code" id="branch-source">
|
230
|
+
<pre><span class="ruby-comment"># File lib/client/controller/change.rb, line 20</span>
|
231
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">branch</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">to</span> = <span class="ruby-keyword">nil</span>)
|
232
|
+
<span class="ruby-ivar">@to</span> = <span class="ruby-identifier">to</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@to</span>
|
233
|
+
<span class="ruby-identifier">send_to_one</span>(<span class="ruby-identifier">server</span>, <span class="ruby-value">:change_branch</span>, <span class="ruby-identifier">to</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@to</span>)
|
234
|
+
<span class="ruby-keyword">end</span></pre>
|
235
|
+
</div><!-- branch-source -->
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
</div><!-- branch-method -->
|
243
|
+
|
244
|
+
|
245
|
+
<div id="method-i-pre_exec" class="method-detail ">
|
246
|
+
|
247
|
+
<div class="method-heading">
|
248
|
+
<span class="method-name">pre_exec</span><span
|
249
|
+
class="method-args">()</span>
|
250
|
+
|
251
|
+
<span class="method-click-advice">click to toggle source</span>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
|
256
|
+
<div class="method-description">
|
257
|
+
|
258
|
+
<p>Prepare to execute the requested method</p>
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-calls-super">
|
262
|
+
Calls superclass method
|
263
|
+
<a href="Base.html#method-i-pre_exec">Vermillion::Controller::Base#pre_exec</a>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<div class="method-source-code" id="pre_exec-source">
|
269
|
+
<pre><span class="ruby-comment"># File lib/client/controller/change.rb, line 7</span>
|
270
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pre_exec</span>
|
271
|
+
<span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">opt</span><span class="ruby-operator">|</span>
|
272
|
+
<span class="ruby-identifier">opt</span>.<span class="ruby-identifier">banner</span> = <span class="ruby-string">"vermillion change [...-flags]"</span>
|
273
|
+
|
274
|
+
<span class="ruby-identifier">opt</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">"-t"</span>, <span class="ruby-string">"--to=TO"</span>, <span class="ruby-string">"Branch to change to"</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@to</span> = <span class="ruby-identifier">o</span> }
|
275
|
+
<span class="ruby-keyword">end</span>.<span class="ruby-identifier">parse!</span>
|
276
|
+
|
277
|
+
<span class="ruby-keyword">super</span>
|
278
|
+
<span class="ruby-keyword">end</span></pre>
|
279
|
+
</div><!-- pre_exec-source -->
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
</div><!-- pre_exec-method -->
|
287
|
+
|
288
|
+
|
289
|
+
</section><!-- public-instance-method-details -->
|
290
|
+
|
291
|
+
</section><!-- 5Buntitled-5D -->
|
292
|
+
|
293
|
+
</div><!-- documentation -->
|
294
|
+
|
295
|
+
|
296
|
+
<footer id="validator-badges">
|
297
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
298
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
299
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
300
|
+
</footer>
|
301
|
+
|
@@ -0,0 +1,301 @@
|
|
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::Create - 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/create.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-one">#one</a>
|
89
|
+
|
90
|
+
<li class="calls-super" ><a href="#method-i-pre_exec">#pre_exec</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div id="project-metadata">
|
98
|
+
<nav id="fileindex-section" class="section project-section">
|
99
|
+
<h3 class="section-header">Pages</h3>
|
100
|
+
|
101
|
+
<ul>
|
102
|
+
|
103
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a>
|
104
|
+
|
105
|
+
<li class="file"><a href="../../Gemfile_lock.html">Gemfile.lock</a>
|
106
|
+
|
107
|
+
<li class="file"><a href="../../README_md.html">README</a>
|
108
|
+
|
109
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a>
|
110
|
+
|
111
|
+
<li class="file"><a href="../../bin/setup.html">setup</a>
|
112
|
+
|
113
|
+
<li class="file"><a href="../../vermillion-client_gemspec.html">vermillion-client.gemspec</a>
|
114
|
+
|
115
|
+
</ul>
|
116
|
+
</nav>
|
117
|
+
|
118
|
+
<nav id="classindex-section" class="section project-section">
|
119
|
+
<h3 class="section-header">Class and Module Index</h3>
|
120
|
+
|
121
|
+
<ul class="link-list">
|
122
|
+
|
123
|
+
<li><a href="../../ChangeBranchTest.html">ChangeBranchTest</a>
|
124
|
+
|
125
|
+
<li><a href="../../ConfigurationTest.html">ConfigurationTest</a>
|
126
|
+
|
127
|
+
<li><a href="../../CreateTest.html">CreateTest</a>
|
128
|
+
|
129
|
+
<li><a href="../../UpdateTest.html">UpdateTest</a>
|
130
|
+
|
131
|
+
<li><a href="../../Vermillion.html">Vermillion</a>
|
132
|
+
|
133
|
+
<li><a href="../../Vermillion/Cfg.html">Vermillion::Cfg</a>
|
134
|
+
|
135
|
+
<li><a href="../../Vermillion/Controller.html">Vermillion::Controller</a>
|
136
|
+
|
137
|
+
<li><a href="../../Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
|
138
|
+
|
139
|
+
<li><a href="../../Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
|
140
|
+
|
141
|
+
<li><a href="../../Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
|
142
|
+
|
143
|
+
<li><a href="../../Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
|
144
|
+
|
145
|
+
<li><a href="../../Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
|
146
|
+
|
147
|
+
<li><a href="../../Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
|
148
|
+
|
149
|
+
<li><a href="../../Vermillion/Helper.html">Vermillion::Helper</a>
|
150
|
+
|
151
|
+
<li><a href="../../Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
|
152
|
+
|
153
|
+
<li><a href="../../Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
|
154
|
+
|
155
|
+
<li><a href="../../Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
|
156
|
+
|
157
|
+
<li><a href="../../Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
|
158
|
+
|
159
|
+
<li><a href="../../Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
|
160
|
+
|
161
|
+
<li><a href="../../Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
|
162
|
+
|
163
|
+
<li><a href="../../Vermillion/Request.html">Vermillion::Request</a>
|
164
|
+
|
165
|
+
<li><a href="../../Vermillion/Router.html">Vermillion::Router</a>
|
166
|
+
|
167
|
+
<li><a href="../../Vermillion/Test.html">Vermillion::Test</a>
|
168
|
+
|
169
|
+
<li><a href="../../Vermillion/Test/Base.html">Vermillion::Test::Base</a>
|
170
|
+
|
171
|
+
<li><a href="../../Vermillion/Utils.html">Vermillion::Utils</a>
|
172
|
+
|
173
|
+
</ul>
|
174
|
+
</nav>
|
175
|
+
|
176
|
+
</div>
|
177
|
+
</nav>
|
178
|
+
|
179
|
+
<div id="documentation">
|
180
|
+
<h1 class="class">class Vermillion::Controller::Create</h1>
|
181
|
+
|
182
|
+
<div id="description" class="description">
|
183
|
+
|
184
|
+
</div><!-- description -->
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<!-- Methods -->
|
199
|
+
|
200
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
201
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
202
|
+
|
203
|
+
|
204
|
+
<div id="method-i-one" class="method-detail ">
|
205
|
+
|
206
|
+
<div class="method-heading">
|
207
|
+
<span class="method-name">one</span><span
|
208
|
+
class="method-args">(server, name = nil)</span>
|
209
|
+
|
210
|
+
<span class="method-click-advice">click to toggle source</span>
|
211
|
+
|
212
|
+
</div>
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-description">
|
216
|
+
|
217
|
+
<p><a href="Create.html">Create</a> a new project on the requested server</p>
|
218
|
+
<dl class="rdoc-list note-list"><dt><code>server</code>
|
219
|
+
<dd>
|
220
|
+
<p>Symbol representing the server you want to access</p>
|
221
|
+
</dd><dt><code>name</code>
|
222
|
+
<dd>
|
223
|
+
<p>Optional symbol, the name of the project</p>
|
224
|
+
</dd></dl>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-source-code" id="one-source">
|
230
|
+
<pre><span class="ruby-comment"># File lib/client/controller/create.rb, line 20</span>
|
231
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">one</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>)
|
232
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@name</span>
|
233
|
+
<span class="ruby-identifier">send_to_one</span>(<span class="ruby-identifier">server</span>, <span class="ruby-value">:create</span>, <span class="ruby-identifier">name</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@name</span>)
|
234
|
+
<span class="ruby-keyword">end</span></pre>
|
235
|
+
</div><!-- one-source -->
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
</div><!-- one-method -->
|
243
|
+
|
244
|
+
|
245
|
+
<div id="method-i-pre_exec" class="method-detail ">
|
246
|
+
|
247
|
+
<div class="method-heading">
|
248
|
+
<span class="method-name">pre_exec</span><span
|
249
|
+
class="method-args">()</span>
|
250
|
+
|
251
|
+
<span class="method-click-advice">click to toggle source</span>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
|
256
|
+
<div class="method-description">
|
257
|
+
|
258
|
+
<p>Prepare to execute the requested method</p>
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-calls-super">
|
262
|
+
Calls superclass method
|
263
|
+
<a href="Base.html#method-i-pre_exec">Vermillion::Controller::Base#pre_exec</a>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<div class="method-source-code" id="pre_exec-source">
|
269
|
+
<pre><span class="ruby-comment"># File lib/client/controller/create.rb, line 7</span>
|
270
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pre_exec</span>
|
271
|
+
<span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">opt</span><span class="ruby-operator">|</span>
|
272
|
+
<span class="ruby-identifier">opt</span>.<span class="ruby-identifier">banner</span> = <span class="ruby-string">"vermillion create [...-flags]"</span>
|
273
|
+
|
274
|
+
<span class="ruby-identifier">opt</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">"-n"</span>, <span class="ruby-string">"--name=NAME"</span>, <span class="ruby-string">"Directory to be created"</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">o</span> }
|
275
|
+
<span class="ruby-keyword">end</span>.<span class="ruby-identifier">parse!</span>
|
276
|
+
|
277
|
+
<span class="ruby-keyword">super</span>
|
278
|
+
<span class="ruby-keyword">end</span></pre>
|
279
|
+
</div><!-- pre_exec-source -->
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
</div><!-- pre_exec-method -->
|
287
|
+
|
288
|
+
|
289
|
+
</section><!-- public-instance-method-details -->
|
290
|
+
|
291
|
+
</section><!-- 5Buntitled-5D -->
|
292
|
+
|
293
|
+
</div><!-- documentation -->
|
294
|
+
|
295
|
+
|
296
|
+
<footer id="validator-badges">
|
297
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
298
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
299
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
300
|
+
</footer>
|
301
|
+
|