frontend/public/Meroku/CLI.html in meroku-2.0.9 vs frontend/public/Meroku/CLI.html in meroku-2.0.10

- old
+ new

@@ -386,19 +386,19 @@ <tr> <td> <pre class="lines"> -61 -62 -63 64 65 -66</pre> +66 +67 +68 +69</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 61</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 64</span> <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> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span></span> <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&gt;/dev/null</span><span class='tstring_end'>`</span></span> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span></span> @@ -422,16 +422,16 @@ <tr> <td> <pre class="lines"> -57 -58 -59</pre> +60 +61 +62</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 57</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 60</span> <span class='kw'>def</span> <span class='id identifier rubyid_apiusername'>apiusername</span> <span class='backtick'>`</span><span class='tstring_content'>cat ~/.meroku/.apiusername.chomp</span><span class='tstring_end'>`</span></span> <span class='kw'>end</span></pre> </td> @@ -452,25 +452,26 @@ <tr> <td> <pre class="lines"> -44 -45 46 47 48 49 50 51 52 53 54 -55</pre> +55 +56 +57 +58</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 44</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 46</span> <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</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="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> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>https://www.meroku.com/apps.json</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>app:</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>unnamed</span><span class='tstring_end'>&#39;</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> @@ -479,10 +480,11 @@ <span class='id identifier rubyid_add_git_remote'>add_git_remote</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>meroku</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&#39;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>name</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>.git</span><span class='tstring_end'>&quot;</span></span> <span class='rparen'>)</span> <span class='kw'>end</span> + <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -500,21 +502,23 @@ <tr> <td> <pre class="lines"> -88 -89 -90 -91</pre> +93 +94 +95 +96 +97</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 88</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 93</span> <span class='kw'>def</span> <span class='id identifier rubyid_despawn'>despawn</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="" 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> <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'>&amp;</span><span class='symbol'>:shutdown</span><span class='rparen'>)</span> + <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -532,25 +536,26 @@ <tr> <td> <pre class="lines"> -68 -69 -70 71 72 73 74 75 76 77 78 -79</pre> +79 +80 +81 +82 +83</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 68</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 71</span> <span class='kw'>def</span> <span class='id identifier rubyid_keys_add'>keys_add</span> <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span></span> <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> <span class='id identifier rubyid_abort'>abort</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&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_file'>file</span><span class='rparen'>)</span> @@ -559,10 +564,11 @@ <span class='label'>publickey:</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>id_rsa.pub</span><span class='tstring_end'>&#39;</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> <span class='label'>apisecret:</span> <span class='id identifier rubyid_apisecret'>apisecret</span> <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> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&#39;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>name</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>end</span> + <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -590,11 +596,12 @@ 28 29 30 31 32 -33</pre> +33 +34</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 23</span> <span class='kw'>def</span> <span class='id identifier rubyid_login'>login</span> @@ -605,10 +612,11 @@ <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> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&#39;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>email</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>apiusername</span><span class='tstring_end'>&#39;</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'>&#39;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>apiusername</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='id identifier rubyid_save_setting'>save_setting</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>apisecret</span><span class='tstring_end'>&#39;</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'>&#39;</span><span class='tstring_content'>attributes</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>apisecret</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>end</span> + <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -626,29 +634,31 @@ <tr> <td> <pre class="lines"> -35 36 37 38 39 40 41 -42</pre> +42 +43 +44</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 35</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 36</span> <span class='kw'>def</span> <span class='id identifier rubyid_logout'>logout</span> <span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span></span> <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> <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> <span class='kw'>end</span> + <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -666,17 +676,17 @@ <tr> <td> <pre class="lines"> -93 -94 -95 -96</pre> +99 +100 +101 +102</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 93</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 99</span> <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> <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'>&quot;</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'>&quot;</span></span> <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'>&quot;</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'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -746,25 +756,27 @@ <tr> <td> <pre class="lines"> -81 -82 -83 -84 85 -86</pre> +86 +87 +88 +89 +90 +91</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 81</span> + <pre class="code"><span class="info file"># File 'lib/meroku/cli.rb', line 85</span> <span class='kw'>def</span> <span class='id identifier rubyid_spawn'>spawn</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="" 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> <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> <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> <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> + <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> @@ -772,10 +784,10 @@ </div> </div> <div id="footer"> - Generated on Tue Oct 31 19:39:54 2017 by + Generated on Wed Nov 1 08:50:10 2017 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.9.9 (ruby-2.4.2). </div> </div> \ No newline at end of file