- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>
- Class: HelixSync::ChangeService
-
- — Documentation by YARD 0.8.7.6
-
- </title>
-
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
-
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
-
- <script type="text/javascript" charset="utf-8">
- hasFrames = window.top.frames.main ? true : false;
- relpath = '../';
- framesUrl = "../frames.html#!HelixSync/ChangeService.html";
- </script>
-
-
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
-
-
- </head>
- <body>
- <div id="header">
- <div id="menu">
-
- <a href="../_index.html">Index (C)</a> »
- <span class='title'><span class='object_link'><a href="../HelixSync.html" title="HelixSync (module)">HelixSync</a></span></span>
- »
- <span class="title">ChangeService</span>
-
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
- </div>
-
- <div id="search">
-
- <a class="full_list_link" id="class_list_link"
- href="../class_list.html">
- Class List
- </a>
-
- <a class="full_list_link" id="method_list_link"
- href="../method_list.html">
- Method List
- </a>
-
- <a class="full_list_link" id="file_list_link"
- href="../file_list.html">
- File List
- </a>
-
- </div>
- <div class="clear"></div>
- </div>
-
- <iframe id="search_frame"></iframe>
-
- <div id="content"><h1>Class: HelixSync::ChangeService
-
-
-
- </h1>
-
- <dl class="box">
-
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
- <span class="inheritName">Object</span>
-
- <ul class="fullTree">
- <li>Object</li>
-
- <li class="next">HelixSync::ChangeService</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
-
-
-
-
-
-
-
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/helix_sync/change_service.rb</dd>
-
- </dl>
- <div class="clear"></div>
-
- <h2>Overview</h2><div class="docstring">
- <div class="discussion">
-
- <p>Front end to managing changelist-related resources.</p>
-
- <p>This doesn't actually provide implementations, just hooks for other
- services.</p>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div>
- <h2>Constant Summary</h2>
-
- <dl class="constants">
-
- <dt id="create_pending_change-classvariable" class="">@@create_pending_change =
-
- </dt>
- <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
-
- <dt id="fetch_latest_change-classvariable" class="">@@fetch_latest_change =
-
- </dt>
- <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
-
- <dt id="fetch_pending_change-classvariable" class="">@@fetch_pending_change =
-
- </dt>
- <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
-
- <dt id="submit_pending_change-classvariable" class="">@@submit_pending_change =
-
- </dt>
- <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
-
- </dl>
-
-
-
-
-
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#env-instance_method" title="#env (instance method)">- (Object) <strong>env</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Rack environment.</p>
- </div></span>
-
- </li>
-
-
- </ul>
-
-
-
-
-
- <h2>
- Class Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#create_pending_change-class_method" title="create_pending_change (class method)">+ (Object) <strong>create_pending_change</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Callback list for creating a pending changelist.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#fetch_latest_change-class_method" title="fetch_latest_change (class method)">+ (Object) <strong>fetch_latest_change</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Callback list for finding the latest changelist for a project.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#fetch_pending_change-class_method" title="fetch_pending_change (class method)">+ (Object) <strong>fetch_pending_change</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Callback list for finding the pending changelist for a project.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#submit_pending_change-class_method" title="submit_pending_change (class method)">+ (Object) <strong>submit_pending_change</strong> </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Callback list for submitting a pending changelist for a project.</p>
- </div></span>
-
- </li>
-
-
- </ul>
-
- <h2>
- Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#create_pending_change-instance_method" title="#create_pending_change (instance method)">- (Object) <strong>create_pending_change</strong>(project_id) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Returns the new pending change for the user and project ID.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#find_latest_change-instance_method" title="#find_latest_change (instance method)">- (Object) <strong>find_latest_change</strong>(project_id) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Returns the change found by the first handler that supports the project, or
- nil.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#find_pending_change-instance_method" title="#find_pending_change (instance method)">- (Object) <strong>find_pending_change</strong>(project_id) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>Returns the change found by the first handler that supports the project, or
- nil.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (ChangeService) <strong>initialize</strong>(env: nil) </a>
-
-
-
- </span>
-
-
- <span class="note title constructor">constructor</span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- <p>A new instance of ChangeService.</p>
- </div></span>
-
- </li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#submit_pending_change-instance_method" title="#submit_pending_change (instance method)">- (Object) <strong>submit_pending_change</strong>(project_id) </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'></div></span>
-
- </li>
-
-
- </ul>
-
-
- <div id="constructor_details" class="method_details_list">
- <h2>Constructor Details</h2>
-
- <div class="method_details first">
- <h3 class="signature first" id="initialize-instance_method">
-
- - (<tt><span class='object_link'><a href="" title="HelixSync::ChangeService (class)">ChangeService</a></span></tt>) <strong>initialize</strong>(env: nil)
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Returns a new instance of ChangeService</p>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 11
- 12
- 13</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 11</span>
-
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>env:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
- <span class='ivar'>@env</span> <span class='op'>=</span> <span class='id identifier rubyid_env'>env</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
-
- <div id="instance_attr_details" class="attr_details">
- <h2>Instance Attribute Details</h2>
-
-
- <span id="env=-instance_method"></span>
- <div class="method_details first">
- <h3 class="signature first" id="env-instance_method">
-
- - (<tt>Object</tt>) <strong>env</strong>
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Rack environment</p>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 9
- 10
- 11</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 9</span>
-
- <span class='kw'>def</span> <span class='id identifier rubyid_env'>env</span>
- <span class='ivar'>@env</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
-
-
- <div id="class_method_details" class="method_details_list">
- <h2>Class Method Details</h2>
-
-
- <div class="method_details first">
- <h3 class="signature first" id="create_pending_change-class_method">
-
- + (<tt>Object</tt>) <strong>create_pending_change</strong>
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Callback list for creating a pending changelist</p>
-
- <p>Your handler should return the changelist if your implementation handled
- creating the changelist number.</p>
-
- <p>Each callback you add should consume these parameters:</p>
- <ul><li>
- <p><code>project</code> [String]: The encoded project ID</p>
- </li><li>
- <p><code>env</code> [Hash]: Current Rack environment</p>
- </li></ul>
-
- <p>Example:</p>
-
- <pre class="code ruby"><code class="ruby"><span class='const'>HelixSync</span><span class='op'>::</span><span class='const'>ChangeService</span><span class='period'>.</span><span class='id identifier rubyid_create_pending_change'>create_pending_change</span> <span class='op'><<</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='op'>|</span>
- <span class='id identifier rubyid_create_change'>create_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_i_support?'>i_support?</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- </code></pre>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 101
- 102
- 103</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 101</span>
-
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_pending_change'>create_pending_change</span>
- <span class='cvar'>@@create_pending_change</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="fetch_latest_change-class_method">
-
- + (<tt>Object</tt>) <strong>fetch_latest_change</strong>
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Callback list for finding the latest changelist for a project.</p>
-
- <p>Your handler should return the changelist if your implementation supports
- this particular project.</p>
-
- <p>Each callback you add should consume these parameters:</p>
- <ul><li>
- <p><code>project</code> [String]: The encoded project ID</p>
- </li><li>
- <p><code>env</code> [Hash]: Current Rack environment</p>
- </li></ul>
-
- <p>Example:</p>
-
- <pre class="code ruby"><code class="ruby"><span class='const'>HelixSync</span><span class='op'>::</span><span class='const'>ChangeService</span><span class='period'>.</span><span class='id identifier rubyid_fetch_change'>fetch_change</span> <span class='op'><<</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='op'>|</span>
- <span class='id identifier rubyid_fetch_change'>fetch_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_i_support?'>i_support?</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- </code></pre>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 36
- 37
- 38</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 36</span>
-
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fetch_latest_change'>fetch_latest_change</span>
- <span class='cvar'>@@fetch_latest_change</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="fetch_pending_change-class_method">
-
- + (<tt>Object</tt>) <strong>fetch_pending_change</strong>
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Callback list for finding the pending changelist for a project.</p>
-
- <p>Your handler should return the changelist if your implementation supports
- this particular project.</p>
-
- <p>Each callback you add should consume these parameters:</p>
- <ul><li>
- <p><code>project</code> [String]: The encoded project ID</p>
- </li><li>
- <p><code>env</code> [Hash]: Current Rack environment</p>
- </li></ul>
-
- <p>Example:</p>
-
- <pre class="code ruby"><code class="ruby"><span class='const'>HelixSync</span><span class='op'>::</span><span class='const'>ChangeService</span><span class='period'>.</span><span class='id identifier rubyid_fetch_change'>fetch_change</span> <span class='op'><<</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='op'>|</span>
- <span class='id identifier rubyid_fetch_change'>fetch_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_i_support?'>i_support?</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- </code></pre>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 68
- 69
- 70</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 68</span>
-
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fetch_pending_change'>fetch_pending_change</span>
- <span class='cvar'>@@fetch_pending_change</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="submit_pending_change-class_method">
-
- + (<tt>Object</tt>) <strong>submit_pending_change</strong>
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Callback list for submitting a pending changelist for a project</p>
-
- <p>Your handler should return the changelist if your implementation handled
- creating the changelist number.</p>
-
- <p>Each callback you add should consume these parameters:</p>
- <ul><li>
- <p><code>project</code> [String]: The encoded project ID</p>
- </li><li>
- <p><code>env</code> [Hash]: Current Rack environment</p>
- </li></ul>
-
- <p>Example:</p>
-
- <pre class="code ruby"><code class="ruby"><span class='const'>HelixSync</span><span class='op'>::</span><span class='const'>ChangeService</span><span class='period'>.</span><span class='id identifier rubyid_submit_pending_change'>submit_pending_change</span> <span class='op'><<</span> <span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_changelist'>changelist</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='op'>|</span>
- <span class='id identifier rubyid_create_change'>create_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_changelist'>changelist</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_i_support?'>i_support?</span><span class='lparen'>(</span><span class='id identifier rubyid_project'>project</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- </code></pre>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 133
- 134
- 135</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 133</span>
-
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_submit_pending_change'>submit_pending_change</span>
- <span class='cvar'>@@submit_pending_change</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <h3 class="signature first" id="create_pending_change-instance_method">
-
- - (<tt>Object</tt>) <strong>create_pending_change</strong>(project_id)
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Returns the new pending change for the user and project ID</p>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 106</span>
-
- <span class='kw'>def</span> <span class='id identifier rubyid_create_pending_change'>create_pending_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_change_num'>change_num</span> <span class='op'>=</span> <span class='kw'>nil</span>
- <span class='cvar'>@@create_pending_change</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_handler'>handler</span><span class='op'>|</span>
- <span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_handler'>handler</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_change_num'>change_num</span> <span class='op'>=</span> <span class='id identifier rubyid_c'>c</span> <span class='kw'>if</span> <span class='id identifier rubyid_c'>c</span>
- <span class='id identifier rubyid_c'>c</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_change_num'>change_num</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="find_latest_change-instance_method">
-
- - (<tt>Object</tt>) <strong>find_latest_change</strong>(project_id)
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Returns the change found by the first handler that supports the project, or
- nil</p>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 42</span>
-
- <span class='kw'>def</span> <span class='id identifier rubyid_find_latest_change'>find_latest_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_change_num'>change_num</span> <span class='op'>=</span> <span class='kw'>nil</span>
- <span class='cvar'>@@fetch_latest_change</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_handler'>handler</span><span class='op'>|</span>
- <span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_handler'>handler</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_change_num'>change_num</span> <span class='op'>=</span> <span class='id identifier rubyid_c'>c</span> <span class='kw'>if</span> <span class='id identifier rubyid_c'>c</span>
- <span class='id identifier rubyid_c'>c</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_change_num'>change_num</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="find_pending_change-instance_method">
-
- - (<tt>Object</tt>) <strong>find_pending_change</strong>(project_id)
-
-
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- <p>Returns the change found by the first handler that supports the project, or
- nil</p>
-
-
- </div>
- </div>
- <div class="tags">
-
-
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 74</span>
-
- <span class='kw'>def</span> <span class='id identifier rubyid_find_pending_change'>find_pending_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_change_num'>change_num</span> <span class='op'>=</span> <span class='kw'>nil</span>
- <span class='cvar'>@@fetch_pending_change</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_handler'>handler</span><span class='op'>|</span>
- <span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_handler'>handler</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_change_num'>change_num</span> <span class='op'>=</span> <span class='id identifier rubyid_c'>c</span> <span class='kw'>if</span> <span class='id identifier rubyid_c'>c</span>
- <span class='id identifier rubyid_c'>c</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_change_num'>change_num</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="submit_pending_change-instance_method">
-
- - (<tt>Object</tt>) <strong>submit_pending_change</strong>(project_id)
-
-
-
-
-
- </h3><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
- 137
- 138
- 139
- 140
- 141</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/helix_sync/change_service.rb', line 137</span>
-
- <span class='kw'>def</span> <span class='id identifier rubyid_submit_pending_change'>submit_pending_change</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='rparen'>)</span>
- <span class='cvar'>@@submit_pending_change</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_handler'>handler</span><span class='op'>|</span>
- <span class='id identifier rubyid_handler'>handler</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_project_id'>project_id</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
-
- </div>
-
- <div id="footer">
- Generated on Tue Sep 15 01:20:29 2015 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.7.6 (ruby-2.2.3).
- </div>
-
- </body>
- </html>
# |
Change |
User |
Description |
Committed |
|
#1
|
15741 |
ptomiak |
Branch HWS for my use. |
10 years ago
|
|