meroku 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/bin/meroku +1 -1
- data/circle.yml +23 -0
- data/frontend/Gemfile +5 -2
- data/frontend/Gemfile.lock +5 -2
- data/frontend/app/controllers/application_controller.rb +1 -0
- data/frontend/app/controllers/apps_controller.rb +46 -48
- data/frontend/app/controllers/publickeys_controller.rb +45 -46
- data/frontend/app/controllers/users/registrations_controller.rb +0 -15
- data/frontend/app/controllers/users/sessions_controller.rb +12 -3
- data/frontend/app/lib/cmd.rb +11 -0
- data/frontend/app/models/app.rb +18 -11
- data/frontend/app/models/publickey.rb +1 -1
- data/frontend/app/models/user.rb +5 -4
- data/frontend/app/policies/application_policy.rb +53 -0
- data/frontend/app/policies/publickey_policy.rb +7 -0
- data/frontend/app/serializable/serializable_user.rb +2 -1
- data/frontend/app/views/layouts/application.html.erb +1 -1
- data/frontend/config/database.yml +72 -10
- data/frontend/config/routes.rb +6 -14
- data/frontend/db/migrate/20171028150506_add_apisecret_to_users.rb +6 -0
- data/frontend/etc_nginx_sites-enabled_default +1 -1
- data/frontend/public/Meroku.html +140 -0
- data/frontend/public/Meroku/Api.html +129 -0
- data/frontend/public/Meroku/Api/Request.html +221 -0
- data/frontend/public/Meroku/Aws.html +212 -0
- data/frontend/public/Meroku/Aws/Ec2.html +477 -0
- data/frontend/public/Meroku/CLI.html +784 -0
- data/frontend/public/Meroku/CLI/AdminUser.html +192 -0
- data/frontend/public/Meroku/CLI/Help.html +224 -0
- data/frontend/public/Meroku/CLI/Secrets.html +191 -0
- data/frontend/public/Meroku/CLI/Session.html +460 -0
- data/frontend/public/Meroku/CLI/User.html +182 -0
- data/frontend/public/Meroku/Extensions.html +405 -0
- data/frontend/public/Meroku/Infrastructure.html +279 -0
- data/frontend/public/Meroku/Infrastructure/Node.html +785 -0
- data/frontend/public/Meroku/Infrastructure/Server.html +373 -0
- data/frontend/public/Meroku/Node.html +845 -0
- data/frontend/public/Meroku/Tunnel.html +701 -0
- data/frontend/public/Meroku/Tunnelable.html +243 -0
- data/frontend/public/_index.html +273 -0
- data/frontend/public/class_list.html +51 -0
- data/frontend/public/css/common.css +1 -0
- data/frontend/public/css/full_list.css +58 -0
- data/frontend/public/css/style.css +492 -0
- data/frontend/public/file.README.html +181 -0
- data/frontend/public/file_list.html +56 -0
- data/frontend/public/frames.html +17 -0
- data/frontend/public/index.html +181 -0
- data/frontend/public/js/app.js +248 -0
- data/frontend/public/js/full_list.js +216 -0
- data/frontend/public/js/jquery.js +4 -0
- data/frontend/public/method_list.html +395 -0
- data/frontend/public/robots.txt +2 -1
- data/frontend/public/top-level-namespace.html +110 -0
- data/frontend/test/policies/publickey_policy_test.rb +19 -0
- data/lib/meroku.rb +9 -7
- data/lib/meroku/api.rb +8 -0
- data/lib/meroku/api/request.rb +17 -0
- data/lib/meroku/aws.rb +14 -0
- data/lib/meroku/aws/ec2.rb +59 -0
- data/lib/meroku/cli.rb +80 -81
- data/lib/meroku/cli/help.rb +27 -0
- data/lib/meroku/cli/secrets.rb +13 -0
- data/lib/meroku/cli/session.rb +32 -51
- data/lib/meroku/extensions.rb +32 -0
- data/lib/meroku/infrastructure.rb +14 -17
- data/lib/meroku/infrastructure/server.rb +20 -0
- data/lib/meroku/node.rb +113 -0
- data/lib/meroku/tunnelable.rb +31 -0
- data/lib/meroku/version.rb +1 -1
- data/modified-cedar-14.sh +0 -4
- metadata +50 -9
- data/frontend/app/controllers/pages_controller.rb +0 -4
- data/frontend/app/views/pages/landing.html.erb +0 -2
- data/frontend/db/migrate/20171025193627_add_token_to_users.rb +0 -5
- data/lib/meroku/cli/admin_user.rb +0 -20
- data/lib/meroku/cli/user.rb +0 -14
- data/lib/meroku/infrastructure/node.rb +0 -102
- data/lib/meroku/tunnel.rb +0 -56
@@ -0,0 +1,784 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Meroku::CLI
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.9
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Meroku::CLI";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (C)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">CLI</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Meroku::CLI
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dl>
|
75
|
+
<dt>Includes:</dt>
|
76
|
+
<dd><span class='object_link'><a href="Aws/Ec2.html" title="Meroku::Aws::Ec2 (module)">Aws::Ec2</a></span></dd>
|
77
|
+
</dl>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<dl>
|
83
|
+
<dt>Included in:</dt>
|
84
|
+
<dd><span class='object_link'><a href="CLI/Session.html" title="Meroku::CLI::Session (class)">Session</a></span></dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dl>
|
90
|
+
<dt>Defined in:</dt>
|
91
|
+
<dd>lib/meroku/cli.rb<span class="defines">,<br />
|
92
|
+
lib/meroku/cli/help.rb,<br /> lib/meroku/cli/secrets.rb,<br /> lib/meroku/cli/session.rb</span>
|
93
|
+
</dd>
|
94
|
+
</dl>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<h2>Overview</h2><div class="docstring">
|
99
|
+
<div class="discussion">
|
100
|
+
|
101
|
+
<p>The CLI is used by end users and also maintainers</p>
|
102
|
+
|
103
|
+
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
<div class="tags">
|
107
|
+
|
108
|
+
|
109
|
+
</div><h2>Defined Under Namespace</h2>
|
110
|
+
<p class="children">
|
111
|
+
|
112
|
+
|
113
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="CLI/Help.html" title="Meroku::CLI::Help (module)">Help</a></span>, <span class='object_link'><a href="CLI/Secrets.html" title="Meroku::CLI::Secrets (module)">Secrets</a></span>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="CLI/Session.html" title="Meroku::CLI::Session (class)">Session</a></span>
|
118
|
+
|
119
|
+
|
120
|
+
</p>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<h2>
|
130
|
+
Instance Method Summary
|
131
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
132
|
+
</h2>
|
133
|
+
|
134
|
+
<ul class="summary">
|
135
|
+
|
136
|
+
<li class="public ">
|
137
|
+
<span class="summary_signature">
|
138
|
+
|
139
|
+
<a href="#add_git_remote-instance_method" title="#add_git_remote (instance method)">#<strong>add_git_remote</strong>(name, uri) ⇒ Object </a>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
</span>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
154
|
+
|
155
|
+
</li>
|
156
|
+
|
157
|
+
|
158
|
+
<li class="public ">
|
159
|
+
<span class="summary_signature">
|
160
|
+
|
161
|
+
<a href="#apiusername-instance_method" title="#apiusername (instance method)">#<strong>apiusername</strong> ⇒ Object </a>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
</span>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#create-instance_method" title="#create (instance method)">#<strong>create</strong> ⇒ Object </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
198
|
+
|
199
|
+
</li>
|
200
|
+
|
201
|
+
|
202
|
+
<li class="public ">
|
203
|
+
<span class="summary_signature">
|
204
|
+
|
205
|
+
<a href="#despawn-instance_method" title="#despawn (instance method)">#<strong>despawn</strong> ⇒ Object </a>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</span>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
220
|
+
|
221
|
+
</li>
|
222
|
+
|
223
|
+
|
224
|
+
<li class="public ">
|
225
|
+
<span class="summary_signature">
|
226
|
+
|
227
|
+
<a href="#keys_add-instance_method" title="#keys_add (instance method)">#<strong>keys_add</strong> ⇒ Object </a>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
242
|
+
|
243
|
+
</li>
|
244
|
+
|
245
|
+
|
246
|
+
<li class="public ">
|
247
|
+
<span class="summary_signature">
|
248
|
+
|
249
|
+
<a href="#login-instance_method" title="#login (instance method)">#<strong>login</strong> ⇒ Object </a>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
</span>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
264
|
+
|
265
|
+
</li>
|
266
|
+
|
267
|
+
|
268
|
+
<li class="public ">
|
269
|
+
<span class="summary_signature">
|
270
|
+
|
271
|
+
<a href="#logout-instance_method" title="#logout (instance method)">#<strong>logout</strong> ⇒ Object </a>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
</span>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
286
|
+
|
287
|
+
</li>
|
288
|
+
|
289
|
+
|
290
|
+
<li class="public ">
|
291
|
+
<span class="summary_signature">
|
292
|
+
|
293
|
+
<a href="#save_setting-instance_method" title="#save_setting (instance method)">#<strong>save_setting</strong>(name, value) ⇒ Object </a>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
</span>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
308
|
+
|
309
|
+
</li>
|
310
|
+
|
311
|
+
|
312
|
+
<li class="public ">
|
313
|
+
<span class="summary_signature">
|
314
|
+
|
315
|
+
<a href="#signup-instance_method" title="#signup (instance method)">#<strong>signup</strong> ⇒ Object </a>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</span>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
330
|
+
|
331
|
+
</li>
|
332
|
+
|
333
|
+
|
334
|
+
<li class="public ">
|
335
|
+
<span class="summary_signature">
|
336
|
+
|
337
|
+
<a href="#spawn-instance_method" title="#spawn (instance method)">#<strong>spawn</strong> ⇒ Object </a>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
</span>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
352
|
+
|
353
|
+
</li>
|
354
|
+
|
355
|
+
|
356
|
+
</ul>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Aws/Ec2.html" title="Meroku::Aws::Ec2 (module)">Aws::Ec2</a></span></h3>
|
369
|
+
<p class="inherited"><span class='object_link'><a href="Aws/Ec2.html#associate_address-class_method" title="Meroku::Aws::Ec2.associate_address (method)">associate_address</a></span>, <span class='object_link'><a href="Aws/Ec2.html#ec2_client-instance_method" title="Meroku::Aws::Ec2#ec2_client (method)">#ec2_client</a></span>, <span class='object_link'><a href="Aws/Ec2.html#ec2_client-class_method" title="Meroku::Aws::Ec2.ec2_client (method)">ec2_client</a></span>, <span class='object_link'><a href="Aws/Ec2.html#make_instance-instance_method" title="Meroku::Aws::Ec2#make_instance (method)">#make_instance</a></span>, <span class='object_link'><a href="Aws/Ec2.html#tag-instance_method" title="Meroku::Aws::Ec2#tag (method)">#tag</a></span></p>
|
370
|
+
|
371
|
+
|
372
|
+
<div id="instance_method_details" class="method_details_list">
|
373
|
+
<h2>Instance Method Details</h2>
|
374
|
+
|
375
|
+
|
376
|
+
<div class="method_details first">
|
377
|
+
<h3 class="signature first" id="add_git_remote-instance_method">
|
378
|
+
|
379
|
+
#<strong>add_git_remote</strong>(name, uri) ⇒ <tt>Object</tt>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
</h3><table class="source_code">
|
386
|
+
<tr>
|
387
|
+
<td>
|
388
|
+
<pre class="lines">
|
389
|
+
|
390
|
+
|
391
|
+
61
|
392
|
+
62
|
393
|
+
63
|
394
|
+
64
|
395
|
+
65
|
396
|
+
66</pre>
|
397
|
+
</td>
|
398
|
+
<td>
|
399
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 61</span>
|
400
|
+
|
401
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_git_remote'>add_git_remote</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='rparen'>)</span>
|
402
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git remote remove </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
403
|
+
<span class='backtick'>`</span><span class='tstring_content'>git remote remove </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> 2>/dev/null</span><span class='tstring_end'>`</span></span>
|
404
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git remote add </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_uri'>uri</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
405
|
+
<span class='backtick'>`</span><span class='tstring_content'>git remote add </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_uri'>uri</span><span class='embexpr_end'>}</span><span class='tstring_end'>`</span></span>
|
406
|
+
<span class='kw'>end</span></pre>
|
407
|
+
</td>
|
408
|
+
</tr>
|
409
|
+
</table>
|
410
|
+
</div>
|
411
|
+
|
412
|
+
<div class="method_details ">
|
413
|
+
<h3 class="signature " id="apiusername-instance_method">
|
414
|
+
|
415
|
+
#<strong>apiusername</strong> ⇒ <tt>Object</tt>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
</h3><table class="source_code">
|
422
|
+
<tr>
|
423
|
+
<td>
|
424
|
+
<pre class="lines">
|
425
|
+
|
426
|
+
|
427
|
+
57
|
428
|
+
58
|
429
|
+
59</pre>
|
430
|
+
</td>
|
431
|
+
<td>
|
432
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 57</span>
|
433
|
+
|
434
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_apiusername'>apiusername</span>
|
435
|
+
<span class='backtick'>`</span><span class='tstring_content'>cat ~/.meroku/.apiusername.chomp</span><span class='tstring_end'>`</span></span>
|
436
|
+
<span class='kw'>end</span></pre>
|
437
|
+
</td>
|
438
|
+
</tr>
|
439
|
+
</table>
|
440
|
+
</div>
|
441
|
+
|
442
|
+
<div class="method_details ">
|
443
|
+
<h3 class="signature " id="create-instance_method">
|
444
|
+
|
445
|
+
#<strong>create</strong> ⇒ <tt>Object</tt>
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
</h3><table class="source_code">
|
452
|
+
<tr>
|
453
|
+
<td>
|
454
|
+
<pre class="lines">
|
455
|
+
|
456
|
+
|
457
|
+
44
|
458
|
+
45
|
459
|
+
46
|
460
|
+
47
|
461
|
+
48
|
462
|
+
49
|
463
|
+
50
|
464
|
+
51
|
465
|
+
52
|
466
|
+
53
|
467
|
+
54
|
468
|
+
55</pre>
|
469
|
+
</td>
|
470
|
+
<td>
|
471
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 44</span>
|
472
|
+
|
473
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span>
|
474
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api.html" title="Meroku::Api (module)">Api</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api/Request.html" title="Meroku::Api::Request (module)">Request</a></span></span><span class='period'>.</span><span class='id identifier rubyid_post'><span class='object_link'><a href="Api/Request.html#post-class_method" title="Meroku::Api::Request.post (method)">post</a></span></span><span class='lparen'>(</span>
|
475
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https://www.meroku.com/apps.json</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
476
|
+
<span class='label'>app:</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>unnamed</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>apisecret:</span> <span class='backtick'>`</span><span class='tstring_content'>cat ~/.meroku/.apisecret</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
|
477
|
+
<span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_response'>response</span><span class='op'>|</span>
|
478
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Created </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>, adding git remote</span><span class='tstring_end'>"</span></span>
|
479
|
+
<span class='id identifier rubyid_add_git_remote'>add_git_remote</span><span class='lparen'>(</span>
|
480
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>meroku</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
481
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_apiusername'>apiusername</span><span class='embexpr_end'>}</span><span class='tstring_content'>@www.meroku.com:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>.git</span><span class='tstring_end'>"</span></span>
|
482
|
+
<span class='rparen'>)</span>
|
483
|
+
<span class='kw'>end</span>
|
484
|
+
<span class='kw'>end</span></pre>
|
485
|
+
</td>
|
486
|
+
</tr>
|
487
|
+
</table>
|
488
|
+
</div>
|
489
|
+
|
490
|
+
<div class="method_details ">
|
491
|
+
<h3 class="signature " id="despawn-instance_method">
|
492
|
+
|
493
|
+
#<strong>despawn</strong> ⇒ <tt>Object</tt>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
</h3><table class="source_code">
|
500
|
+
<tr>
|
501
|
+
<td>
|
502
|
+
<pre class="lines">
|
503
|
+
|
504
|
+
|
505
|
+
88
|
506
|
+
89
|
507
|
+
90
|
508
|
+
91</pre>
|
509
|
+
</td>
|
510
|
+
<td>
|
511
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 88</span>
|
512
|
+
|
513
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_despawn'>despawn</span>
|
514
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Meroku::CLI (module)">CLI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CLI/Secrets.html" title="Meroku::CLI::Secrets (module)">Secrets</a></span></span><span class='period'>.</span><span class='id identifier rubyid_load'><span class='object_link'><a href="CLI/Secrets.html#load-class_method" title="Meroku::CLI::Secrets.load (method)">load</a></span></span><span class='lparen'>(</span><span class='label'>admin:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
515
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Infrastructure.html" title="Meroku::Infrastructure (module)">Infrastructure</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each_server'><span class='object_link'><a href="Infrastructure.html#each_server-class_method" title="Meroku::Infrastructure.each_server (method)">each_server</a></span></span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:shutdown</span><span class='rparen'>)</span>
|
516
|
+
<span class='kw'>end</span></pre>
|
517
|
+
</td>
|
518
|
+
</tr>
|
519
|
+
</table>
|
520
|
+
</div>
|
521
|
+
|
522
|
+
<div class="method_details ">
|
523
|
+
<h3 class="signature " id="keys_add-instance_method">
|
524
|
+
|
525
|
+
#<strong>keys_add</strong> ⇒ <tt>Object</tt>
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
</h3><table class="source_code">
|
532
|
+
<tr>
|
533
|
+
<td>
|
534
|
+
<pre class="lines">
|
535
|
+
|
536
|
+
|
537
|
+
68
|
538
|
+
69
|
539
|
+
70
|
540
|
+
71
|
541
|
+
72
|
542
|
+
73
|
543
|
+
74
|
544
|
+
75
|
545
|
+
76
|
546
|
+
77
|
547
|
+
78
|
548
|
+
79</pre>
|
549
|
+
</td>
|
550
|
+
<td>
|
551
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 68</span>
|
552
|
+
|
553
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_keys_add'>keys_add</span>
|
554
|
+
<span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_home'>home</span><span class='embexpr_end'>}</span><span class='tstring_content'>/.ssh/id_rsa.pub</span><span class='tstring_end'>"</span></span>
|
555
|
+
<span class='id identifier rubyid_apisecret'>apisecret</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>cat ~/.meroku/.apisecret</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
|
556
|
+
<span class='id identifier rubyid_abort'>abort</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>error: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_content'> not found</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
|
557
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api.html" title="Meroku::Api (module)">Api</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api/Request.html" title="Meroku::Api::Request (module)">Request</a></span></span><span class='period'>.</span><span class='id identifier rubyid_post'><span class='object_link'><a href="Api/Request.html#post-class_method" title="Meroku::Api::Request.post (method)">post</a></span></span><span class='lparen'>(</span>
|
558
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https://www.meroku.com/publickeys.json</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
559
|
+
<span class='label'>publickey:</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id_rsa.pub</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>data:</span> <span class='backtick'>`</span><span class='tstring_content'>cat ~/.ssh/id_rsa.pub</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
560
|
+
<span class='label'>apisecret:</span> <span class='id identifier rubyid_apisecret'>apisecret</span>
|
561
|
+
<span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_response'>response</span><span class='op'>|</span>
|
562
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Added </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
563
|
+
<span class='kw'>end</span>
|
564
|
+
<span class='kw'>end</span></pre>
|
565
|
+
</td>
|
566
|
+
</tr>
|
567
|
+
</table>
|
568
|
+
</div>
|
569
|
+
|
570
|
+
<div class="method_details ">
|
571
|
+
<h3 class="signature " id="login-instance_method">
|
572
|
+
|
573
|
+
#<strong>login</strong> ⇒ <tt>Object</tt>
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
</h3><table class="source_code">
|
580
|
+
<tr>
|
581
|
+
<td>
|
582
|
+
<pre class="lines">
|
583
|
+
|
584
|
+
|
585
|
+
23
|
586
|
+
24
|
587
|
+
25
|
588
|
+
26
|
589
|
+
27
|
590
|
+
28
|
591
|
+
29
|
592
|
+
30
|
593
|
+
31
|
594
|
+
32
|
595
|
+
33</pre>
|
596
|
+
</td>
|
597
|
+
<td>
|
598
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 23</span>
|
599
|
+
|
600
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_login'>login</span>
|
601
|
+
<span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Extensions.html" title="Meroku::Extensions (module)">Extensions</a></span></span><span class='period'>.</span><span class='id identifier rubyid_mgets'><span class='object_link'><a href="Extensions.html#mgets-class_method" title="Meroku::Extensions.mgets (method)">mgets</a></span></span><span class='lparen'>(</span><span class='qsymbols_beg'>%i[</span><span class='tstring_content'>email</span><span class='words_sep'> </span><span class='tstring_content'>password</span><span class='words_sep'>]</span><span class='rparen'>)</span>
|
602
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api.html" title="Meroku::Api (module)">Api</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api/Request.html" title="Meroku::Api::Request (module)">Request</a></span></span><span class='period'>.</span><span class='id identifier rubyid_post'><span class='object_link'><a href="Api/Request.html#post-class_method" title="Meroku::Api::Request.post (method)">post</a></span></span><span class='lparen'>(</span>
|
603
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https://www.meroku.com/users/sign_in.json</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
604
|
+
<span class='label'>user:</span> <span class='lbrace'>{</span> <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span> <span class='rbrace'>}</span>
|
605
|
+
<span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_response'>response</span><span class='op'>|</span>
|
606
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Signed in as </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>email</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
607
|
+
<span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apiusername</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apiusername</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
608
|
+
<span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apisecret</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apisecret</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
609
|
+
<span class='kw'>end</span>
|
610
|
+
<span class='kw'>end</span></pre>
|
611
|
+
</td>
|
612
|
+
</tr>
|
613
|
+
</table>
|
614
|
+
</div>
|
615
|
+
|
616
|
+
<div class="method_details ">
|
617
|
+
<h3 class="signature " id="logout-instance_method">
|
618
|
+
|
619
|
+
#<strong>logout</strong> ⇒ <tt>Object</tt>
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
</h3><table class="source_code">
|
626
|
+
<tr>
|
627
|
+
<td>
|
628
|
+
<pre class="lines">
|
629
|
+
|
630
|
+
|
631
|
+
35
|
632
|
+
36
|
633
|
+
37
|
634
|
+
38
|
635
|
+
39
|
636
|
+
40
|
637
|
+
41
|
638
|
+
42</pre>
|
639
|
+
</td>
|
640
|
+
<td>
|
641
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 35</span>
|
642
|
+
|
643
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_logout'>logout</span>
|
644
|
+
<span class='lbracket'>[</span>
|
645
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_home'>home</span><span class='embexpr_end'>}</span><span class='tstring_content'>/.meroku/.apiusername</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
646
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_home'>home</span><span class='embexpr_end'>}</span><span class='tstring_content'>/.meroku/.apisecret</span><span class='tstring_end'>"</span></span>
|
647
|
+
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span>
|
648
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_f'>f</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='id identifier rubyid_f'>f</span><span class='rparen'>)</span>
|
649
|
+
<span class='kw'>end</span>
|
650
|
+
<span class='kw'>end</span></pre>
|
651
|
+
</td>
|
652
|
+
</tr>
|
653
|
+
</table>
|
654
|
+
</div>
|
655
|
+
|
656
|
+
<div class="method_details ">
|
657
|
+
<h3 class="signature " id="save_setting-instance_method">
|
658
|
+
|
659
|
+
#<strong>save_setting</strong>(name, value) ⇒ <tt>Object</tt>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
</h3><table class="source_code">
|
666
|
+
<tr>
|
667
|
+
<td>
|
668
|
+
<pre class="lines">
|
669
|
+
|
670
|
+
|
671
|
+
93
|
672
|
+
94
|
673
|
+
95
|
674
|
+
96</pre>
|
675
|
+
</td>
|
676
|
+
<td>
|
677
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 93</span>
|
678
|
+
|
679
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
680
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_home'>home</span><span class='embexpr_end'>}</span><span class='tstring_content'>/.meroku</span><span class='tstring_end'>"</span></span>
|
681
|
+
<span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_home'>home</span><span class='embexpr_end'>}</span><span class='tstring_content'>/.meroku/.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
682
|
+
<span class='kw'>end</span></pre>
|
683
|
+
</td>
|
684
|
+
</tr>
|
685
|
+
</table>
|
686
|
+
</div>
|
687
|
+
|
688
|
+
<div class="method_details ">
|
689
|
+
<h3 class="signature " id="signup-instance_method">
|
690
|
+
|
691
|
+
#<strong>signup</strong> ⇒ <tt>Object</tt>
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
</h3><table class="source_code">
|
698
|
+
<tr>
|
699
|
+
<td>
|
700
|
+
<pre class="lines">
|
701
|
+
|
702
|
+
|
703
|
+
10
|
704
|
+
11
|
705
|
+
12
|
706
|
+
13
|
707
|
+
14
|
708
|
+
15
|
709
|
+
16
|
710
|
+
17
|
711
|
+
18
|
712
|
+
19
|
713
|
+
20
|
714
|
+
21</pre>
|
715
|
+
</td>
|
716
|
+
<td>
|
717
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 10</span>
|
718
|
+
|
719
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_signup'>signup</span>
|
720
|
+
<span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='id identifier rubyid_pw'>pw</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Extensions.html" title="Meroku::Extensions (module)">Extensions</a></span></span><span class='period'>.</span><span class='id identifier rubyid_mgets'><span class='object_link'><a href="Extensions.html#mgets-class_method" title="Meroku::Extensions.mgets (method)">mgets</a></span></span><span class='lparen'>(</span><span class='qsymbols_beg'>%i[</span><span class='tstring_content'>email</span><span class='words_sep'> </span><span class='tstring_content'>password</span><span class='words_sep'>]</span><span class='rparen'>)</span>
|
721
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api.html" title="Meroku::Api (module)">Api</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Api/Request.html" title="Meroku::Api::Request (module)">Request</a></span></span><span class='period'>.</span><span class='id identifier rubyid_post'><span class='object_link'><a href="Api/Request.html#post-class_method" title="Meroku::Api::Request.post (method)">post</a></span></span><span class='lparen'>(</span>
|
722
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https://www.meroku.com/users.json</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
723
|
+
<span class='label'>user:</span> <span class='lbrace'>{</span> <span class='label'>email:</span> <span class='id identifier rubyid_email'>email</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_pw'>pw</span><span class='comma'>,</span> <span class='label'>password_confirmation:</span> <span class='id identifier rubyid_pw'>pw</span> <span class='rbrace'>}</span>
|
724
|
+
<span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_response'>response</span><span class='op'>|</span>
|
725
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Signed up </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>email</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
726
|
+
<span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apiusername</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apiusername</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
727
|
+
<span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apisecret</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attributes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apisecret</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
728
|
+
<span class='kw'>end</span>
|
729
|
+
<span class='kw'>true</span>
|
730
|
+
<span class='kw'>end</span></pre>
|
731
|
+
</td>
|
732
|
+
</tr>
|
733
|
+
</table>
|
734
|
+
</div>
|
735
|
+
|
736
|
+
<div class="method_details ">
|
737
|
+
<h3 class="signature " id="spawn-instance_method">
|
738
|
+
|
739
|
+
#<strong>spawn</strong> ⇒ <tt>Object</tt>
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
</h3><table class="source_code">
|
746
|
+
<tr>
|
747
|
+
<td>
|
748
|
+
<pre class="lines">
|
749
|
+
|
750
|
+
|
751
|
+
81
|
752
|
+
82
|
753
|
+
83
|
754
|
+
84
|
755
|
+
85
|
756
|
+
86</pre>
|
757
|
+
</td>
|
758
|
+
<td>
|
759
|
+
<pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 81</span>
|
760
|
+
|
761
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_spawn'>spawn</span>
|
762
|
+
<span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Meroku::CLI (module)">CLI</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="CLI/Secrets.html" title="Meroku::CLI::Secrets (module)">Secrets</a></span></span><span class='period'>.</span><span class='id identifier rubyid_load'><span class='object_link'><a href="CLI/Secrets.html#load-class_method" title="Meroku::CLI::Secrets.load (method)">load</a></span></span><span class='lparen'>(</span><span class='label'>admin:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
763
|
+
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Meroku.html" title="Meroku (module)">Meroku</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Node.html" title="Meroku::Node (class)">Node</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Node.html#initialize-instance_method" title="Meroku::Node#initialize (method)">new</a></span></span>
|
764
|
+
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_associate_address'>associate_address</span><span class='period'>.</span><span class='id identifier rubyid_configure_keys'>configure_keys</span><span class='period'>.</span><span class='id identifier rubyid_add_sources'>add_sources</span><span class='period'>.</span><span class='id identifier rubyid_ubuntu_updates'>ubuntu_updates</span>
|
765
|
+
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_install_packages'>install_packages</span><span class='period'>.</span><span class='id identifier rubyid_database_inits'>database_inits</span><span class='period'>.</span><span class='id identifier rubyid_git_clone'>git_clone</span><span class='period'>.</span><span class='id identifier rubyid_nginx_configs'>nginx_configs</span><span class='period'>.</span><span class='id identifier rubyid_start_rails'>start_rails</span>
|
766
|
+
<span class='kw'>end</span></pre>
|
767
|
+
</td>
|
768
|
+
</tr>
|
769
|
+
</table>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
</div>
|
773
|
+
|
774
|
+
</div>
|
775
|
+
|
776
|
+
<div id="footer">
|
777
|
+
Generated on Tue Oct 31 19:39:54 2017 by
|
778
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
779
|
+
0.9.9 (ruby-2.4.2).
|
780
|
+
</div>
|
781
|
+
|
782
|
+
</div>
|
783
|
+
</body>
|
784
|
+
</html>
|