doc/Mushikago/Mitsubachi/Client.html in mushikago-sdk-0.3.1 vs doc/Mushikago/Mitsubachi/Client.html in mushikago-sdk-0.3.2

- old
+ new

@@ -95,11 +95,11 @@ <div class="clear"></div> <h2>Overview</h2><div class="docstring"> <div class="discussion"> <p> -Mitsubachiサービスを利用する +mitsubachiサービスを利用する </p> </div> </div> @@ -107,11 +107,12 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span> <span class='op'>=</span> <span class='const'>Mushikago</span><span class='op'>::</span><span class='const'>Mitsubachi</span><span class='op'>::</span><span class='const'>Client</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:api_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&lt;api_key&gt;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:secret_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&lt;secret_key&gt;</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> + <pre class="example code"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>mushikago</span><span class='tstring_end'>'</span></span> +<span class='id identifier rubyid_client'>client</span> <span class='op'>=</span> <span class='const'>Mushikago</span><span class='op'>::</span><span class='const'>Mitsubachi</span><span class='op'>::</span><span class='const'>Client</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:api_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&lt;api_key&gt;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:secret_key</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&lt;secret_key&gt;</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_create'>project_create</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_script_deploy'>script_deploy</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_http_fetch'>http_fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://www.mushikago.org/</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> @@ -165,11 +166,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO http/fetchの説明. +http/fetchを発行します. </p> </div></span> </li> @@ -189,11 +190,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO http/pushの説明. +http/pushを発行します. </p> </div></span> </li> @@ -213,11 +214,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/createの説明. +project/createを発行します. </p> </div></span> </li> @@ -237,11 +238,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/deleteの説明. +project/deleteを発行します. </p> </div></span> </li> @@ -261,11 +262,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/discontinueの説明. +project/discontinueを発行します. </p> </div></span> </li> @@ -285,11 +286,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/infoの説明. +project/infoを発行します. </p> </div></span> </li> @@ -309,11 +310,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/listの説明. +project/listを発行します. </p> </div></span> </li> @@ -333,11 +334,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/queuesの説明. +project/queuesを発行します. </p> </div></span> </li> @@ -357,11 +358,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO project/updateの説明. +project/updateを発行します. </p> </div></span> </li> @@ -381,11 +382,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO resource/deleteの説明. +resource/deleteを発行します. </p> </div></span> </li> @@ -405,11 +406,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO resource/getの説明. +resource/getを発行します. </p> </div></span> </li> @@ -429,11 +430,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO resource/listの説明. +resource/listを発行します. </p> </div></span> </li> @@ -453,11 +454,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO resource/storeの説明. +resource/storeを発行します. </p> </div></span> </li> @@ -477,11 +478,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO script/deleteの説明. +script/deleteを発行します. </p> </div></span> </li> @@ -501,11 +502,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO script/deployの説明. +script/deployを発行します. </p> </div></span> </li> @@ -525,11 +526,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO script/getの説明. +script/getを発行します. </p> </div></span> </li> @@ -549,11 +550,11 @@ <span class="summary_desc"><div class='inline'><p> -TODO script/listの説明. +script/listを発行します. </p> </div></span> </li> @@ -591,11 +592,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO http/fetchの説明 +http/fetchを発行します </p> </div> </div> @@ -694,19 +695,16 @@ <h3>Options Hash (<tt>options</tt>):</h3> <ul class="option"> <li> - <span class="name">:method('GET')</span> + <span class="name">:method</span> <span class="type">(<tt>String</tt>)</span> <span class="default"> </span> - &mdash; <div class='inline'><p> -HTTPリクエストメソッド -</p> -</div> + </li> <li> <span class="name">:entity_parameter</span> <span class="type">(<tt>String</tt>)</span> @@ -770,17 +768,17 @@ <tr> <td> <pre class="lines"> -117 -118 -119 -120</pre> +143 +144 +145 +146</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 117</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 143</span> <span class='kw'>def</span> <span class='id identifier rubyid_http_fetch'>http_fetch</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>HttpFetchRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -797,11 +795,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO http/pushの説明 +http/pushを発行します </p> </div> </div> @@ -990,17 +988,17 @@ <tr> <td> <pre class="lines"> -137 -138 -139 -140</pre> +163 +164 +165 +166</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 137</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 163</span> <span class='kw'>def</span> <span class='id identifier rubyid_http_push'>http_push</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_input_key'>file_input_key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>HttpPushRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_input_key'>file_input_key</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1017,11 +1015,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/createの説明 +project/createを発行します </p> </div> </div> @@ -1073,10 +1071,75 @@ </li> </ul> + + + + + + <h3>Options Hash (<tt>options</tt>):</h3> + <ul class="option"> + + <li> + <span class="name">:dedicated</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:max_lead_time</span> + <span class="type">(<tt>Integer</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:stdout</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:stderr</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:system_log</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:log_prefix</span> + <span class="type">(<tt>String</tt>)</span> + <span class="default"> + + </span> + + </li> + + </ul> + + <h3>Returns:</h3> <ul class="return"> <li> @@ -1099,17 +1162,17 @@ <tr> <td> <pre class="lines"> -24 -25 -26 -27</pre> +31 +32 +33 +34</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 24</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 31</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_create'>project_create</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectCreateRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1126,11 +1189,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/deleteの説明 +project/deleteを発行します </p> </div> </div> @@ -1182,10 +1245,30 @@ </li> </ul> + + + + + + <h3>Options Hash (<tt>options</tt>):</h3> + <ul class="option"> + + <li> + <span class="name">:forcedelete</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + </ul> + + <h3>Returns:</h3> <ul class="return"> <li> @@ -1208,17 +1291,17 @@ <tr> <td> <pre class="lines"> -74 -75 -76 -77</pre> +95 +96 +97 +98</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 74</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 95</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_delete'>project_delete</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectDeleteRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1235,11 +1318,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/discontinueの説明 +project/discontinueを発行します </p> </div> </div> @@ -1317,17 +1400,17 @@ <tr> <td> <pre class="lines"> -98 -99 -100 -101</pre> +124 +125 +126 +127</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 98</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 124</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_discontinue'>project_discontinue</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectDiscontinueRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1344,11 +1427,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/infoの説明 +project/infoを発行します </p> </div> </div> @@ -1356,11 +1439,20 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_info'>project_info</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_info'>project_info</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dedicated</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>max_lead_time</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stdout</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>stderr</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>system_log</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>log_prefix</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>count</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>usage</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>storage_prefix</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -1426,17 +1518,17 @@ <tr> <td> <pre class="lines"> -50 -51 -52 -53</pre> +69 +70 +71 +72</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 50</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 69</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_info'>project_info</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectInfoRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1453,11 +1545,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/listの説明 +project/listを発行します </p> </div> </div> @@ -1465,11 +1557,14 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_list'>project_list</span></pre> + <pre class="example code"><span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_list'>project_list</span> +<span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>projects</span><span class='tstring_end'>'</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_project'>project</span><span class='op'>|</span> + <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_project'>project</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='kw'>end</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -1554,17 +1649,17 @@ <tr> <td> <pre class="lines"> -38 -39 -40 -41</pre> +48 +49 +50 +51</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 38</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 48</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_list'>project_list</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectListRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1581,11 +1676,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/queuesの説明 +project/queuesを発行します </p> </div> </div> @@ -1593,11 +1688,12 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_queues'>project_queues</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_project_queues'>project_queues</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>count</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -1663,17 +1759,17 @@ <tr> <td> <pre class="lines"> -62 -63 -64 -65</pre> +82 +83 +84 +85</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 62</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 82</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_queues'>project_queues</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectQueuesRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1690,11 +1786,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO project/updateの説明 +project/updateを発行します </p> </div> </div> @@ -1746,10 +1842,66 @@ </li> </ul> + + + + + + <h3>Options Hash (<tt>options</tt>):</h3> + <ul class="option"> + + <li> + <span class="name">:max_lead_time</span> + <span class="type">(<tt>Integer</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:stdout</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:stderr</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:system_log</span> + <span class="type">(<tt>Boolean</tt>)</span> + <span class="default"> + + </span> + + </li> + + <li> + <span class="name">:log_prefix</span> + <span class="type">(<tt>String</tt>)</span> + <span class="default"> + + </span> + + </li> + + </ul> + + <h3>Returns:</h3> <ul class="return"> <li> @@ -1772,17 +1924,17 @@ <tr> <td> <pre class="lines"> -86 -87 -88 -89</pre> +112 +113 +114 +115</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 86</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 112</span> <span class='kw'>def</span> <span class='id identifier rubyid_project_update'>project_update</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ProjectUpdateRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1799,11 +1951,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO resource/deleteの説明 +resource/deleteを発行します </p> </div> </div> @@ -1898,17 +2050,17 @@ <tr> <td> <pre class="lines"> -249 -250 -251 -252</pre> +301 +302 +303 +304</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 249</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 301</span> <span class='kw'>def</span> <span class='id identifier rubyid_resource_delete'>resource_delete</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ResourceDeleteRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -1925,11 +2077,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO resource/getの説明 +resource/getを発行します </p> </div> </div> @@ -1937,11 +2089,12 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_resource_get'>resource_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_resource_get'>resource_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -2024,17 +2177,17 @@ <tr> <td> <pre class="lines"> -236 -237 -238 -239</pre> +288 +289 +290 +291</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 236</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 288</span> <span class='kw'>def</span> <span class='id identifier rubyid_resource_get'>resource_get</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ResourceGetRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2051,11 +2204,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO resource/listの説明 +resource/listを発行します </p> </div> </div> @@ -2063,11 +2216,23 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_resource_list'>resource_list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_limit'>limit</span> <span class='op'>=</span> <span class='int'>10</span> +<span class='id identifier rubyid_offset'>offset</span> <span class='op'>=</span> <span class='int'>0</span> +<span class='id identifier rubyid_has_more_files'>has_more_files</span> <span class='op'>=</span> <span class='int'>1</span> +<span class='kw'>until</span> <span class='id identifier rubyid_has_more_files'>has_more_files</span> <span class='op'>==</span> <span class='int'>0</span> + <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_resource_list'>resource_list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:limit</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span> <span class='symbol'>:offset</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_offset'>offset</span><span class='rparen'>)</span> + <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>files</span><span class='tstring_end'>'</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_file'>file</span><span class='op'>|</span> + <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_script'>script</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='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_script'>script</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>size</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_script'>script</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>timestamp</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='kw'>end</span> + <span class='id identifier rubyid_offset'>offset</span> <span class='op'>+=</span> <span class='id identifier rubyid_limit'>limit</span> + <span class='id identifier rubyid_has_more_files'>has_more_files</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>has_more_files</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='kw'>end</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -2171,17 +2336,17 @@ <tr> <td> <pre class="lines"> -223 -224 -225 -226</pre> +274 +275 +276 +277</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 223</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 274</span> <span class='kw'>def</span> <span class='id identifier rubyid_resource_list'>resource_list</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ResourceListRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2198,11 +2363,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO resource/storeの説明 +resource/storeを発行します </p> </div> </div> @@ -2210,11 +2375,11 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_resource_store'>resource_store</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.csv</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_resource_store'>resource_store</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.csv</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:public</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='rparen'>)</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -2238,11 +2403,11 @@ <li> <span class='name'>file_or_file_name</span> - <span class='type'>(<tt>String of File</tt>)</span> + <span class='type'>(<tt>String or File</tt>)</span> &mdash; <div class='inline'><p> @@ -2340,17 +2505,17 @@ <tr> <td> <pre class="lines"> -208 -209 -210 -211</pre> +247 +248 +249 +250</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 208</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 247</span> <span class='kw'>def</span> <span class='id identifier rubyid_resource_store'>resource_store</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_or_file_name'>file_or_file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ResourceStoreRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_or_file_name'>file_or_file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2367,11 +2532,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO script/deleteの説明 +script/deleteを発行します </p> </div> </div> @@ -2466,17 +2631,17 @@ <tr> <td> <pre class="lines"> -192 -193 -194 -195</pre> +231 +232 +233 +234</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 192</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 231</span> <span class='kw'>def</span> <span class='id identifier rubyid_script_delete'>script_delete</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ScriptDeleteRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2493,11 +2658,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO script/deployの説明 +script/deployを発行します </p> </div> </div> @@ -2533,11 +2698,11 @@ <li> <span class='name'>file_or_file_name</span> - <span class='type'>(<tt>String of File</tt>)</span> + <span class='type'>(<tt>String or File</tt>)</span> &mdash; <div class='inline'><p> @@ -2617,17 +2782,17 @@ <tr> <td> <pre class="lines"> -151 -152 -153 -154</pre> +177 +178 +179 +180</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 151</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 177</span> <span class='kw'>def</span> <span class='id identifier rubyid_script_deploy'>script_deploy</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_or_file_name'>file_or_file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ScriptDeployRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_file_or_file_name'>file_or_file_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2644,11 +2809,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO script/getの説明 +script/getを発行します </p> </div> </div> @@ -2656,11 +2821,12 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_script_get'>script_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_script_get'>script_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sample.rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> +<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -2743,17 +2909,17 @@ <tr> <td> <pre class="lines"> -179 -180 -181 -182</pre> +218 +219 +220 +221</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 179</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 218</span> <span class='kw'>def</span> <span class='id identifier rubyid_script_get'>script_get</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ScriptGetRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_script_name'>script_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2770,11 +2936,11 @@ </p><div class="docstring"> <div class="discussion"> <p> -TODO script/listの説明 +script/listを発行します </p> </div> </div> @@ -2782,11 +2948,23 @@ <div class="examples"> <h3>Examples:</h3> <h4><div class='inline'></div></h4> - <pre class="example code"><span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_script_list'>script_list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre> + <pre class="example code"><span class='id identifier rubyid_limit'>limit</span> <span class='op'>=</span> <span class='int'>10</span> +<span class='id identifier rubyid_offset'>offset</span> <span class='op'>=</span> <span class='int'>0</span> +<span class='id identifier rubyid_has_more_files'>has_more_files</span> <span class='op'>=</span> <span class='int'>1</span> +<span class='kw'>until</span> <span class='id identifier rubyid_has_more_files'>has_more_files</span> <span class='op'>==</span> <span class='int'>0</span> + <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_script_list'>script_list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>project01</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:limit</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_limit'>limit</span><span class='comma'>,</span> <span class='symbol'>:offset</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_offset'>offset</span><span class='rparen'>)</span> + <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>scripts</span><span class='tstring_end'>'</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_script'>script</span><span class='op'>|</span> + <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_script'>script</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='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_script'>script</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>size</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_script'>script</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>timestamp</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> + <span class='kw'>end</span> + <span class='id identifier rubyid_offset'>offset</span> <span class='op'>+=</span> <span class='id identifier rubyid_limit'>limit</span> + <span class='id identifier rubyid_has_more_files'>has_more_files</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>has_more_files</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> +<span class='kw'>end</span></pre> </div> <h3>Parameters:</h3> <ul class="param"> @@ -2890,17 +3068,17 @@ <tr> <td> <pre class="lines"> -166 -167 -168 -169</pre> +204 +205 +206 +207</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 166</span> + <pre class="code"><span class="info file"># File 'lib/mushikago/mitsubachi/client.rb', line 204</span> <span class='kw'>def</span> <span class='id identifier rubyid_script_list'>script_list</span> <span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>ScriptListRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_project_name'>project_name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='id identifier rubyid_send_request'>send_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> @@ -2912,10 +3090,10 @@ </div> </div> <div id="footer"> - Generated on Thu Jan 26 17:19:02 2012 by + Generated on Thu Jan 26 18:24:18 2012 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.7.4 (ruby-1.9.2). </div> </body> \ No newline at end of file