meroku 2.0.22 → 2.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/.travis.yml +0 -10
  4. data/Guardfile +43 -0
  5. data/LICENSE.txt +1 -1
  6. data/README.md +29 -89
  7. data/bin/meroku +5 -3
  8. data/{frontend → data}/etc_nginx_sites-enabled_template +0 -0
  9. data/guard +25 -0
  10. data/lib/meroku.rb +17 -20
  11. data/lib/meroku/api.rb +15 -3
  12. data/lib/meroku/aws.rb +69 -6
  13. data/lib/meroku/cli.rb +23 -91
  14. data/lib/meroku/error.rb +11 -0
  15. data/lib/meroku/node.rb +70 -70
  16. data/lib/meroku/options.rb +79 -0
  17. data/lib/meroku/secrets.rb +38 -0
  18. data/lib/meroku/shared.rb +23 -0
  19. data/lib/meroku/user.rb +25 -0
  20. data/lib/meroku/version.rb +3 -1
  21. data/meroku.gemspec +10 -19
  22. metadata +20 -319
  23. data/circle.yml +0 -23
  24. data/frontend/.gitignore +0 -23
  25. data/frontend/.ruby-version +0 -2
  26. data/frontend/Gemfile +0 -61
  27. data/frontend/Gemfile.lock +0 -236
  28. data/frontend/README.md +0 -24
  29. data/frontend/Rakefile +0 -6
  30. data/frontend/app/assets/config/manifest.js +0 -3
  31. data/frontend/app/assets/images/.keep +0 -0
  32. data/frontend/app/assets/javascripts/application.js +0 -15
  33. data/frontend/app/assets/javascripts/apps.coffee +0 -3
  34. data/frontend/app/assets/javascripts/cable.js +0 -13
  35. data/frontend/app/assets/javascripts/channels/.keep +0 -0
  36. data/frontend/app/assets/javascripts/pages.coffee +0 -3
  37. data/frontend/app/assets/javascripts/publickeys.coffee +0 -3
  38. data/frontend/app/assets/stylesheets/application.css +0 -15
  39. data/frontend/app/assets/stylesheets/apps.scss +0 -3
  40. data/frontend/app/assets/stylesheets/pages.scss +0 -3
  41. data/frontend/app/assets/stylesheets/publickeys.scss +0 -3
  42. data/frontend/app/assets/stylesheets/scaffolds.scss +0 -84
  43. data/frontend/app/channels/application_cable/channel.rb +0 -4
  44. data/frontend/app/channels/application_cable/connection.rb +0 -4
  45. data/frontend/app/controllers/application_controller.rb +0 -4
  46. data/frontend/app/controllers/apps_controller.rb +0 -83
  47. data/frontend/app/controllers/concerns/.keep +0 -0
  48. data/frontend/app/controllers/publickeys_controller.rb +0 -82
  49. data/frontend/app/controllers/users/confirmations_controller.rb +0 -28
  50. data/frontend/app/controllers/users/omniauth_callbacks_controller.rb +0 -28
  51. data/frontend/app/controllers/users/passwords_controller.rb +0 -32
  52. data/frontend/app/controllers/users/registrations_controller.rb +0 -74
  53. data/frontend/app/controllers/users/sessions_controller.rb +0 -34
  54. data/frontend/app/controllers/users/unlocks_controller.rb +0 -28
  55. data/frontend/app/helpers/application_helper.rb +0 -2
  56. data/frontend/app/helpers/apps_helper.rb +0 -2
  57. data/frontend/app/helpers/pages_helper.rb +0 -2
  58. data/frontend/app/helpers/publickeys_helper.rb +0 -2
  59. data/frontend/app/jobs/application_job.rb +0 -2
  60. data/frontend/app/lib/cmd.rb +0 -11
  61. data/frontend/app/mailers/application_mailer.rb +0 -4
  62. data/frontend/app/models/app.rb +0 -37
  63. data/frontend/app/models/application_record.rb +0 -3
  64. data/frontend/app/models/concerns/.keep +0 -0
  65. data/frontend/app/models/publickey.rb +0 -15
  66. data/frontend/app/models/user.rb +0 -22
  67. data/frontend/app/policies/application_policy.rb +0 -53
  68. data/frontend/app/policies/publickey_policy.rb +0 -7
  69. data/frontend/app/serializable/serializable_app.rb +0 -6
  70. data/frontend/app/serializable/serializable_publickey.rb +0 -7
  71. data/frontend/app/serializable/serializable_user.rb +0 -8
  72. data/frontend/app/serializers/app_serializer.rb +0 -3
  73. data/frontend/app/serializers/publickey_serializer.rb +0 -4
  74. data/frontend/app/views/apps/_app.json.jbuilder +0 -2
  75. data/frontend/app/views/apps/_form.html.erb +0 -22
  76. data/frontend/app/views/apps/edit.html.erb +0 -6
  77. data/frontend/app/views/apps/index.html.erb +0 -27
  78. data/frontend/app/views/apps/index.json.jbuilder +0 -1
  79. data/frontend/app/views/apps/new.html.erb +0 -5
  80. data/frontend/app/views/apps/show.html.erb +0 -9
  81. data/frontend/app/views/apps/show.json.jbuilder +0 -1
  82. data/frontend/app/views/devise/confirmations/new.html.erb +0 -16
  83. data/frontend/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  84. data/frontend/app/views/devise/mailer/email_changed.html.erb +0 -7
  85. data/frontend/app/views/devise/mailer/password_change.html.erb +0 -3
  86. data/frontend/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  87. data/frontend/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  88. data/frontend/app/views/devise/passwords/edit.html.erb +0 -25
  89. data/frontend/app/views/devise/passwords/new.html.erb +0 -16
  90. data/frontend/app/views/devise/registrations/edit.html.erb +0 -43
  91. data/frontend/app/views/devise/registrations/new.html.erb +0 -29
  92. data/frontend/app/views/devise/sessions/new.html.erb +0 -26
  93. data/frontend/app/views/devise/shared/_links.html.erb +0 -25
  94. data/frontend/app/views/devise/unlocks/new.html.erb +0 -16
  95. data/frontend/app/views/layouts/application.html.erb +0 -16
  96. data/frontend/app/views/layouts/mailer.html.erb +0 -13
  97. data/frontend/app/views/layouts/mailer.text.erb +0 -1
  98. data/frontend/app/views/publickeys/_form.html.erb +0 -32
  99. data/frontend/app/views/publickeys/_publickey.json.jbuilder +0 -2
  100. data/frontend/app/views/publickeys/edit.html.erb +0 -6
  101. data/frontend/app/views/publickeys/index.html.erb +0 -31
  102. data/frontend/app/views/publickeys/index.json.jbuilder +0 -1
  103. data/frontend/app/views/publickeys/new.html.erb +0 -5
  104. data/frontend/app/views/publickeys/show.html.erb +0 -19
  105. data/frontend/app/views/publickeys/show.json.jbuilder +0 -1
  106. data/frontend/bin/bundle +0 -3
  107. data/frontend/bin/rails +0 -9
  108. data/frontend/bin/rake +0 -9
  109. data/frontend/bin/setup +0 -38
  110. data/frontend/bin/spring +0 -17
  111. data/frontend/bin/update +0 -29
  112. data/frontend/bin/yarn +0 -11
  113. data/frontend/config.ru +0 -5
  114. data/frontend/config/application.rb +0 -18
  115. data/frontend/config/boot.rb +0 -3
  116. data/frontend/config/cable.yml +0 -10
  117. data/frontend/config/database.yml +0 -87
  118. data/frontend/config/environment.rb +0 -5
  119. data/frontend/config/environments/development.rb +0 -56
  120. data/frontend/config/environments/production.rb +0 -97
  121. data/frontend/config/environments/test.rb +0 -42
  122. data/frontend/config/initializers/ams.rb +0 -3
  123. data/frontend/config/initializers/application_controller_renderer.rb +0 -8
  124. data/frontend/config/initializers/assets.rb +0 -14
  125. data/frontend/config/initializers/backtrace_silencers.rb +0 -7
  126. data/frontend/config/initializers/cookies_serializer.rb +0 -5
  127. data/frontend/config/initializers/devise.rb +0 -277
  128. data/frontend/config/initializers/filter_parameter_logging.rb +0 -4
  129. data/frontend/config/initializers/inflections.rb +0 -16
  130. data/frontend/config/initializers/mime_types.rb +0 -4
  131. data/frontend/config/initializers/wrap_parameters.rb +0 -14
  132. data/frontend/config/locales/devise.en.yml +0 -64
  133. data/frontend/config/locales/en.yml +0 -33
  134. data/frontend/config/puma.rb +0 -66
  135. data/frontend/config/routes.rb +0 -11
  136. data/frontend/config/secrets.yml +0 -32
  137. data/frontend/config/spring.rb +0 -6
  138. data/frontend/db/migrate/20171023223732_devise_create_users.rb +0 -42
  139. data/frontend/db/migrate/20171025203706_create_apps.rb +0 -9
  140. data/frontend/db/migrate/20171025223804_add_user_to_apps.rb +0 -5
  141. data/frontend/db/migrate/20171026071440_create_publickeys.rb +0 -11
  142. data/frontend/db/migrate/20171028150506_add_apisecret_to_users.rb +0 -6
  143. data/frontend/db/schema.rb +0 -32
  144. data/frontend/db/seeds.rb +0 -7
  145. data/frontend/etc_nginx_sites-enabled_default +0 -29
  146. data/frontend/lib/assets/.keep +0 -0
  147. data/frontend/lib/tasks/.keep +0 -0
  148. data/frontend/log/.keep +0 -0
  149. data/frontend/package.json +0 -5
  150. data/frontend/public/404.html +0 -67
  151. data/frontend/public/422.html +0 -67
  152. data/frontend/public/500.html +0 -66
  153. data/frontend/public/Meroku.html +0 -140
  154. data/frontend/public/Meroku/Api.html +0 -129
  155. data/frontend/public/Meroku/Api/Request.html +0 -221
  156. data/frontend/public/Meroku/Aws/Ec2.html +0 -477
  157. data/frontend/public/Meroku/CLI.html +0 -796
  158. data/frontend/public/Meroku/CLI/Help.html +0 -224
  159. data/frontend/public/Meroku/CLI/Secrets.html +0 -191
  160. data/frontend/public/Meroku/CLI/Session.html +0 -456
  161. data/frontend/public/Meroku/Extensions.html +0 -405
  162. data/frontend/public/Meroku/Infrastructure.html +0 -279
  163. data/frontend/public/Meroku/Infrastructure/Server.html +0 -373
  164. data/frontend/public/Meroku/Node.html +0 -845
  165. data/frontend/public/Meroku/Tunnelable.html +0 -247
  166. data/frontend/public/_index.html +0 -273
  167. data/frontend/public/apple-touch-icon-precomposed.png +0 -0
  168. data/frontend/public/apple-touch-icon.png +0 -0
  169. data/frontend/public/class_list.html +0 -51
  170. data/frontend/public/css/common.css +0 -1
  171. data/frontend/public/css/full_list.css +0 -58
  172. data/frontend/public/css/style.css +0 -492
  173. data/frontend/public/favicon.ico +0 -0
  174. data/frontend/public/file.README.html +0 -179
  175. data/frontend/public/file_list.html +0 -56
  176. data/frontend/public/frames.html +0 -17
  177. data/frontend/public/index.html +0 -179
  178. data/frontend/public/js/app.js +0 -248
  179. data/frontend/public/js/full_list.js +0 -216
  180. data/frontend/public/js/jquery.js +0 -4
  181. data/frontend/public/method_list.html +0 -395
  182. data/frontend/public/robots.txt +0 -2
  183. data/frontend/public/top-level-namespace.html +0 -110
  184. data/frontend/test/application_system_test_case.rb +0 -5
  185. data/frontend/test/controllers/.keep +0 -0
  186. data/frontend/test/controllers/apps_controller_test.rb +0 -48
  187. data/frontend/test/controllers/pages_controller_test.rb +0 -9
  188. data/frontend/test/controllers/publickeys_controller_test.rb +0 -48
  189. data/frontend/test/fixtures/.keep +0 -0
  190. data/frontend/test/fixtures/apps.yml +0 -7
  191. data/frontend/test/fixtures/files/.keep +0 -0
  192. data/frontend/test/fixtures/publickeys.yml +0 -11
  193. data/frontend/test/fixtures/users.yml +0 -11
  194. data/frontend/test/helpers/.keep +0 -0
  195. data/frontend/test/integration/.keep +0 -0
  196. data/frontend/test/mailers/.keep +0 -0
  197. data/frontend/test/models/.keep +0 -0
  198. data/frontend/test/models/app_test.rb +0 -7
  199. data/frontend/test/models/publickey_test.rb +0 -7
  200. data/frontend/test/models/user_test.rb +0 -7
  201. data/frontend/test/policies/publickey_policy_test.rb +0 -19
  202. data/frontend/test/system/.keep +0 -0
  203. data/frontend/test/system/apps_test.rb +0 -9
  204. data/frontend/test/system/publickeys_test.rb +0 -9
  205. data/frontend/test/test_helper.rb +0 -9
  206. data/frontend/tmp/.keep +0 -0
  207. data/frontend/vendor/.keep +0 -0
  208. data/lib/meroku/api/request.rb +0 -17
  209. data/lib/meroku/aws/ec2.rb +0 -59
  210. data/lib/meroku/cli/help.rb +0 -27
  211. data/lib/meroku/cli/secrets.rb +0 -23
  212. data/lib/meroku/cli/session.rb +0 -46
  213. data/lib/meroku/extensions.rb +0 -32
  214. data/lib/meroku/infrastructure.rb +0 -23
  215. data/lib/meroku/infrastructure/server.rb +0 -20
  216. data/lib/meroku/tunnelable.rb +0 -35
  217. data/modified-cedar-14.sh +0 -171
@@ -1,224 +0,0 @@
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::Help
8
-
9
- &mdash; 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::Help";
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 (H)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Meroku.html" title="Meroku (module)">Meroku</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CLI.html" title="Meroku::CLI (module)">CLI</a></span></span>
41
- &raquo;
42
- <span class="title">Help</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::Help
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
- <dl>
78
- <dt>Included in:</dt>
79
- <dd><span class='object_link'><a href="Session.html" title="Meroku::CLI::Session (class)">Session</a></span></dd>
80
- </dl>
81
-
82
-
83
-
84
- <dl>
85
- <dt>Defined in:</dt>
86
- <dd>lib/meroku/cli/help.rb</dd>
87
- </dl>
88
-
89
- </div>
90
-
91
- <h2>Overview</h2><div class="docstring">
92
- <div class="discussion">
93
-
94
- <p>The help thats printed when a command is unspecified or unrecognized</p>
95
-
96
-
97
- </div>
98
- </div>
99
- <div class="tags">
100
-
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <h2>
111
- Instance Method Summary
112
- <small><a href="#" class="summary_toggle">collapse</a></small>
113
- </h2>
114
-
115
- <ul class="summary">
116
-
117
- <li class="public ">
118
- <span class="summary_signature">
119
-
120
- <a href="#help-instance_method" title="#help (instance method)">#<strong>help</strong> &#x21d2; Object </a>
121
-
122
-
123
-
124
- </span>
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- <span class="summary_desc"><div class='inline'></div></span>
135
-
136
- </li>
137
-
138
-
139
- </ul>
140
-
141
-
142
-
143
-
144
- <div id="instance_method_details" class="method_details_list">
145
- <h2>Instance Method Details</h2>
146
-
147
-
148
- <div class="method_details first">
149
- <h3 class="signature first" id="help-instance_method">
150
-
151
- #<strong>help</strong> &#x21d2; <tt>Object</tt>
152
-
153
-
154
-
155
-
156
-
157
- </h3><table class="source_code">
158
- <tr>
159
- <td>
160
- <pre class="lines">
161
-
162
-
163
- 5
164
- 6
165
- 7
166
- 8
167
- 9
168
- 10
169
- 11
170
- 12
171
- 13
172
- 14
173
- 15
174
- 16
175
- 17
176
- 18
177
- 19
178
- 20
179
- 21
180
- 22
181
- 23
182
- 24</pre>
183
- </td>
184
- <td>
185
- <pre class="code"><span class="info file"># File 'lib/meroku/cli/help.rb', line 5</span>
186
-
187
- <span class='kw'>def</span> <span class='id identifier rubyid_help'>help</span>
188
- <span class='heredoc_beg'>&lt;&lt;~HEREDOC</span>
189
- <span class='tstring_content'> Usage:
190
- </span><span class='tstring_content'> meroku command subcommand
191
- </span><span class='tstring_content'>
192
- </span><span class='tstring_content'> Examples:
193
- </span><span class='tstring_content'> meroku signup # if you havent done already
194
- </span><span class='tstring_content'>
195
- </span><span class='tstring_content'> meroku login
196
- </span><span class='tstring_content'>
197
- </span><span class='tstring_content'> meroku logout
198
- </span><span class='tstring_content'>
199
- </span><span class='tstring_content'> meroku create
200
- </span><span class='tstring_content'>
201
- </span><span class='tstring_content'> meroku keys:add
202
- </span><span class='tstring_content'>
203
- </span><span class='tstring_content'> meroku infrastrucuture spawn # Spawns server
204
- </span><span class='tstring_content'>
205
- </span><span class='heredoc_end'> HEREDOC
206
- </span><span class='kw'>end</span></pre>
207
- </td>
208
- </tr>
209
- </table>
210
- </div>
211
-
212
- </div>
213
-
214
- </div>
215
-
216
- <div id="footer">
217
- Generated on Wed Nov 1 08:50:10 2017 by
218
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
219
- 0.9.9 (ruby-2.4.2).
220
- </div>
221
-
222
- </div>
223
- </body>
224
- </html>
@@ -1,191 +0,0 @@
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::Secrets
8
-
9
- &mdash; 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::Secrets";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Meroku.html" title="Meroku (module)">Meroku</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CLI.html" title="Meroku::CLI (module)">CLI</a></span></span>
41
- &raquo;
42
- <span class="title">Secrets</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::Secrets
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/meroku/cli/secrets.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
-
89
- <p>Logic related to apiusername, apipassword and the env file</p>
90
-
91
-
92
- </div>
93
- </div>
94
- <div class="tags">
95
-
96
-
97
- </div>
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <h2>
106
- Class Method Summary
107
- <small><a href="#" class="summary_toggle">collapse</a></small>
108
- </h2>
109
-
110
- <ul class="summary">
111
-
112
- <li class="public ">
113
- <span class="summary_signature">
114
-
115
- <a href="#load-class_method" title="load (class method)">.<strong>load</strong>(admin: false) &#x21d2; Object </a>
116
-
117
-
118
-
119
- </span>
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <span class="summary_desc"><div class='inline'></div></span>
130
-
131
- </li>
132
-
133
-
134
- </ul>
135
-
136
-
137
-
138
-
139
- <div id="class_method_details" class="method_details_list">
140
- <h2>Class Method Details</h2>
141
-
142
-
143
- <div class="method_details first">
144
- <h3 class="signature first" id="load-class_method">
145
-
146
- .<strong>load</strong>(admin: false) &#x21d2; <tt>Object</tt>
147
-
148
-
149
-
150
-
151
-
152
- </h3><table class="source_code">
153
- <tr>
154
- <td>
155
- <pre class="lines">
156
-
157
-
158
- 5
159
- 6
160
- 7
161
- 8
162
- 9
163
- 10</pre>
164
- </td>
165
- <td>
166
- <pre class="code"><span class="info file"># File 'lib/meroku/cli/secrets.rb', line 5</span>
167
-
168
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='label'>admin:</span> <span class='kw'>false</span><span class='rparen'>)</span>
169
- <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_admin'>admin</span>
170
- <span class='id identifier rubyid_env_file'>env_file</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_home'>home</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/.meroku/meroku.env</span><span class='tstring_end'>&#39;</span></span>
171
- <span class='id identifier rubyid_abort'>abort</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>error: File not found (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_env_file'>env_file</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</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_env_file'>env_file</span><span class='rparen'>)</span>
172
- <span class='const'>Dotenv</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_env_file'>env_file</span><span class='rparen'>)</span>
173
- <span class='kw'>end</span></pre>
174
- </td>
175
- </tr>
176
- </table>
177
- </div>
178
-
179
- </div>
180
-
181
- </div>
182
-
183
- <div id="footer">
184
- Generated on Wed Nov 1 08:50:10 2017 by
185
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
186
- 0.9.9 (ruby-2.4.2).
187
- </div>
188
-
189
- </div>
190
- </body>
191
- </html>
@@ -1,456 +0,0 @@
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
- Class: Meroku::CLI::Session
8
-
9
- &mdash; 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::Session";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Meroku.html" title="Meroku (module)">Meroku</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CLI.html" title="Meroku::CLI (module)">CLI</a></span></span>
41
- &raquo;
42
- <span class="title">Session</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>Class: Meroku::CLI::Session
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Meroku::CLI::Session</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
- <dl>
91
- <dt>Includes:</dt>
92
- <dd><span class='object_link'><a href="../CLI.html" title="Meroku::CLI (module)">Meroku::CLI</a></span>, <span class='object_link'><a href="Help.html" title="Meroku::CLI::Help (module)">Help</a></span></dd>
93
- </dl>
94
-
95
-
96
-
97
-
98
-
99
-
100
- <dl>
101
- <dt>Defined in:</dt>
102
- <dd>lib/meroku/cli/session.rb</dd>
103
- </dl>
104
-
105
- </div>
106
-
107
- <h2>Overview</h2><div class="docstring">
108
- <div class="discussion">
109
-
110
- <p>A session is what is created when user executes the meroku command</p>
111
-
112
-
113
- </div>
114
- </div>
115
- <div class="tags">
116
-
117
-
118
- </div>
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <h2>
127
- Instance Method Summary
128
- <small><a href="#" class="summary_toggle">collapse</a></small>
129
- </h2>
130
-
131
- <ul class="summary">
132
-
133
- <li class="public ">
134
- <span class="summary_signature">
135
-
136
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(args) &#x21d2; Session </a>
137
-
138
-
139
-
140
- </span>
141
-
142
-
143
- <span class="note title constructor">constructor</span>
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="summary_desc"><div class='inline'>
153
- <p>A new instance of Session.</p>
154
- </div></span>
155
-
156
- </li>
157
-
158
-
159
- <li class="public ">
160
- <span class="summary_signature">
161
-
162
- <a href="#process_admin_command-instance_method" title="#process_admin_command (instance method)">#<strong>process_admin_command</strong>(arguments) &#x21d2; Object </a>
163
-
164
-
165
-
166
- </span>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
- <span class="summary_desc"><div class='inline'></div></span>
177
-
178
- </li>
179
-
180
-
181
- <li class="public ">
182
- <span class="summary_signature">
183
-
184
- <a href="#process_user_login_command-instance_method" title="#process_user_login_command (instance method)">#<strong>process_user_login_command</strong>(arguments) &#x21d2; Object </a>
185
-
186
-
187
-
188
- </span>
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- <span class="summary_desc"><div class='inline'></div></span>
199
-
200
- </li>
201
-
202
-
203
- <li class="public ">
204
- <span class="summary_signature">
205
-
206
- <a href="#process_user_other_command-instance_method" title="#process_user_other_command (instance method)">#<strong>process_user_other_command</strong>(arguments) &#x21d2; Object </a>
207
-
208
-
209
-
210
- </span>
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
- <span class="summary_desc"><div class='inline'></div></span>
221
-
222
- </li>
223
-
224
-
225
- </ul>
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Help.html" title="Meroku::CLI::Help (module)">Help</a></span></h3>
238
- <p class="inherited"><span class='object_link'><a href="Help.html#help-instance_method" title="Meroku::CLI::Help#help (method)">#help</a></span></p>
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
- <h3 class="inherited">Methods included from <span class='object_link'><a href="../CLI.html" title="Meroku::CLI (module)">Meroku::CLI</a></span></h3>
249
- <p class="inherited"><span class='object_link'><a href="../CLI.html#add_git_remote-instance_method" title="Meroku::CLI#add_git_remote (method)">#add_git_remote</a></span>, <span class='object_link'><a href="../CLI.html#apiusername-instance_method" title="Meroku::CLI#apiusername (method)">#apiusername</a></span>, <span class='object_link'><a href="../CLI.html#create-instance_method" title="Meroku::CLI#create (method)">#create</a></span>, <span class='object_link'><a href="../CLI.html#despawn-instance_method" title="Meroku::CLI#despawn (method)">#despawn</a></span>, <span class='object_link'><a href="../CLI.html#keys_add-instance_method" title="Meroku::CLI#keys_add (method)">#keys_add</a></span>, <span class='object_link'><a href="../CLI.html#login-instance_method" title="Meroku::CLI#login (method)">#login</a></span>, <span class='object_link'><a href="../CLI.html#logout-instance_method" title="Meroku::CLI#logout (method)">#logout</a></span>, <span class='object_link'><a href="../CLI.html#save_setting-instance_method" title="Meroku::CLI#save_setting (method)">#save_setting</a></span>, <span class='object_link'><a href="../CLI.html#signup-instance_method" title="Meroku::CLI#signup (method)">#signup</a></span>, <span class='object_link'><a href="../CLI.html#spawn-instance_method" title="Meroku::CLI#spawn (method)">#spawn</a></span></p>
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
- <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>
260
- <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>
261
- <div id="constructor_details" class="method_details_list">
262
- <h2>Constructor Details</h2>
263
-
264
- <div class="method_details first">
265
- <h3 class="signature first" id="initialize-instance_method">
266
-
267
- #<strong>initialize</strong>(args) &#x21d2; <tt><span class='object_link'><a href="" title="Meroku::CLI::Session (class)">Session</a></span></tt>
268
-
269
-
270
-
271
-
272
-
273
- </h3><div class="docstring">
274
- <div class="discussion">
275
-
276
- <p>Returns a new instance of Session</p>
277
-
278
-
279
- </div>
280
- </div>
281
- <div class="tags">
282
-
283
-
284
- </div><table class="source_code">
285
- <tr>
286
- <td>
287
- <pre class="lines">
288
-
289
-
290
- 8
291
- 9
292
- 10
293
- 11
294
- 12
295
- 13
296
- 14</pre>
297
- </td>
298
- <td>
299
- <pre class="code"><span class="info file"># File 'lib/meroku/cli/session.rb', line 8</span>
300
-
301
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
302
- <span class='id identifier rubyid_processed'>processed</span> <span class='op'>=</span> <span class='id identifier rubyid_process_user_login_command'>process_user_login_command</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>||</span>
303
- <span class='id identifier rubyid_process_user_other_command'>process_user_other_command</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>||</span>
304
- <span class='id identifier rubyid_process_admin_command'>process_admin_command</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
305
- <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown command </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_help'>help</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_processed'>processed</span>
306
- <span class='id identifier rubyid_exit'>exit</span> <span class='int'>1</span> <span class='kw'>unless</span> <span class='id identifier rubyid_processed'>processed</span>
307
- <span class='kw'>end</span></pre>
308
- </td>
309
- </tr>
310
- </table>
311
- </div>
312
-
313
- </div>
314
-
315
-
316
- <div id="instance_method_details" class="method_details_list">
317
- <h2>Instance Method Details</h2>
318
-
319
-
320
- <div class="method_details first">
321
- <h3 class="signature first" id="process_admin_command-instance_method">
322
-
323
- #<strong>process_admin_command</strong>(arguments) &#x21d2; <tt>Object</tt>
324
-
325
-
326
-
327
-
328
-
329
- </h3><table class="source_code">
330
- <tr>
331
- <td>
332
- <pre class="lines">
333
-
334
-
335
- 36
336
- 37
337
- 38
338
- 39
339
- 40
340
- 41
341
- 42
342
- 43</pre>
343
- </td>
344
- <td>
345
- <pre class="code"><span class="info file"># File 'lib/meroku/cli/session.rb', line 36</span>
346
-
347
- <span class='kw'>def</span> <span class='id identifier rubyid_process_admin_command'>process_admin_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
348
- <span class='kw'>case</span> <span class='id identifier rubyid_arguments'>arguments</span>
349
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>infrastructure spawn</span><span class='tstring_end'>&#39;</span></span>
350
- <span class='id identifier rubyid_spawn'>spawn</span>
351
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>infrastructure despawn</span><span class='tstring_end'>&#39;</span></span>
352
- <span class='id identifier rubyid_despawn'>despawn</span>
353
- <span class='kw'>end</span>
354
- <span class='kw'>end</span></pre>
355
- </td>
356
- </tr>
357
- </table>
358
- </div>
359
-
360
- <div class="method_details ">
361
- <h3 class="signature " id="process_user_login_command-instance_method">
362
-
363
- #<strong>process_user_login_command</strong>(arguments) &#x21d2; <tt>Object</tt>
364
-
365
-
366
-
367
-
368
-
369
- </h3><table class="source_code">
370
- <tr>
371
- <td>
372
- <pre class="lines">
373
-
374
-
375
- 16
376
- 17
377
- 18
378
- 19
379
- 20
380
- 21
381
- 22
382
- 23
383
- 24
384
- 25</pre>
385
- </td>
386
- <td>
387
- <pre class="code"><span class="info file"># File 'lib/meroku/cli/session.rb', line 16</span>
388
-
389
- <span class='kw'>def</span> <span class='id identifier rubyid_process_user_login_command'>process_user_login_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
390
- <span class='kw'>case</span> <span class='id identifier rubyid_arguments'>arguments</span>
391
- <span class='kw'>when</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\Asignup</span><span class='regexp_end'>/</span></span>
392
- <span class='id identifier rubyid_signup'>signup</span>
393
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>logout</span><span class='tstring_end'>&#39;</span></span>
394
- <span class='id identifier rubyid_logout'>logout</span>
395
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>login</span><span class='tstring_end'>&#39;</span></span>
396
- <span class='id identifier rubyid_login'>login</span>
397
- <span class='kw'>end</span>
398
- <span class='kw'>end</span></pre>
399
- </td>
400
- </tr>
401
- </table>
402
- </div>
403
-
404
- <div class="method_details ">
405
- <h3 class="signature " id="process_user_other_command-instance_method">
406
-
407
- #<strong>process_user_other_command</strong>(arguments) &#x21d2; <tt>Object</tt>
408
-
409
-
410
-
411
-
412
-
413
- </h3><table class="source_code">
414
- <tr>
415
- <td>
416
- <pre class="lines">
417
-
418
-
419
- 27
420
- 28
421
- 29
422
- 30
423
- 31
424
- 32
425
- 33
426
- 34</pre>
427
- </td>
428
- <td>
429
- <pre class="code"><span class="info file"># File 'lib/meroku/cli/session.rb', line 27</span>
430
-
431
- <span class='kw'>def</span> <span class='id identifier rubyid_process_user_other_command'>process_user_other_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
432
- <span class='kw'>case</span> <span class='id identifier rubyid_arguments'>arguments</span>
433
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>create</span><span class='tstring_end'>&#39;</span></span>
434
- <span class='id identifier rubyid_create'>create</span>
435
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>keys:add</span><span class='tstring_end'>&#39;</span></span>
436
- <span class='id identifier rubyid_keys_add'>keys_add</span>
437
- <span class='kw'>end</span>
438
- <span class='kw'>end</span></pre>
439
- </td>
440
- </tr>
441
- </table>
442
- </div>
443
-
444
- </div>
445
-
446
- </div>
447
-
448
- <div id="footer">
449
- Generated on Wed Nov 1 08:50:10 2017 by
450
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
451
- 0.9.9 (ruby-2.4.2).
452
- </div>
453
-
454
- </div>
455
- </body>
456
- </html>