You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2010/09/30 14:48:04 UTC
svn commit: r1003045 [13/24] - in /incubator/deltacloud/trunk: server/
site/api-docs/ site/api-docs/CloudClient/ site/api-docs/Deltacloud/
site/api-docs/Deltacloud/BaseDriver/ site/api-docs/Deltacloud/Drivers/
site/api-docs/Deltacloud/Drivers/Azure/ si...
Added: incubator/deltacloud/trunk/site/api-docs/Deltacloud/HardwareProfile/Property.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Deltacloud/HardwareProfile/Property.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Deltacloud/HardwareProfile/Property.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Deltacloud/HardwareProfile/Property.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,1031 @@
+<!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 name="Content-Type" content="text/html; charset=utf8" />
+<title>Class: Deltacloud::HardwareProfile::Property</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '../..';
+ if (relpath != '') relpath += '/';
+</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>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../../_index.html">Index (P)</a> »
+ <span class='title'><span class='object_link'><a href="../../Deltacloud.html" title="Deltacloud (module)">Deltacloud</a></span></span> » <span class='title'><span class='object_link'><a href="../HardwareProfile.html" title="Deltacloud::HardwareProfile (class)">HardwareProfile</a></span></span>
+ »
+ <span class="title">Property</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 id="class_list_link" href="#">Class List</a>
+ <a id="method_list_link" href="#">Method List</a>
+ <a id ="file_list_link" href="#">File List</a>
+</div>
+
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Class: Deltacloud::HardwareProfile::Property
+
+
+
+</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">Deltacloud::HardwareProfile::Property</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/deltacloud/hardware_profile.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+ <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="#default-instance_method" title="#default (instance method)">- (Object) <strong>default</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute default.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#first-instance_method" title="#first (instance method)">- (Object) <strong>first</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+kind == :range.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#kind-instance_method" title="#kind (instance method)">- (Object) <strong>kind</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute kind.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#last-instance_method" title="#last (instance method)">- (Object) <strong>last</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+kind == :range.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute name.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+kind == :fixed.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#values-instance_method" title="#values (instance method)">- (Object) <strong>values</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+kind == :enum.
+</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="#fixed%3F-instance_method" title="#fixed? (instance method)">- (Boolean) <strong>fixed?</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#include%3F-instance_method" title="#include? (instance method)">- (Boolean) <strong>include?</strong>(v) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Property) <strong>initialize</strong>(name, values, opts = {}) </a>
+
+
+
+ </span>
+
+ <span class="note title constructor">constructor</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+A new instance of Property.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#param-instance_method" title="#param (instance method)">- (Object) <strong>param</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#to_param-instance_method" title="#to_param (instance method)">- (Object) <strong>to_param</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#unit-instance_method" title="#unit (instance method)">- (Object) <strong>unit</strong> </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">
+ <p class="signature first" id="initialize-instance_method">
+
+ - (<tt><span class='object_link'><a href="" title="Deltacloud::HardwareProfile::Property (class)">Property</a></span></tt>) <strong>initialize</strong>(name, values, opts = {})
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+A new instance of Property
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 25</span>
+
+<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='values identifier id'>values</span><span class='comma token'>,</span> <span class='opts identifier id'>opts</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
+ <span class='@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span>
+ <span class='if if kw'>if</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Range constant id'>Range</span><span class='rparen token'>)</span>
+ <span class='@kind ivar id'>@kind</span> <span class='assign token'>=</span> <span class='symbol val'>:range</span>
+ <span class='@first ivar id'>@first</span> <span class='assign token'>=</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='first identifier id'>first</span>
+ <span class='@last ivar id'>@last</span> <span class='assign token'>=</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
+ <span class='@default ivar id'>@default</span> <span class='assign token'>=</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='first identifier id'>first</span>
+ <span class='elsif elsif kw'>elsif</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Array constant id'>Array</span><span class='rparen token'>)</span>
+ <span class='@kind ivar id'>@kind</span> <span class='assign token'>=</span> <span class='symbol val'>:enum</span>
+ <span class='@values ivar id'>@values</span> <span class='assign token'>=</span> <span class='values identifier id'>values</span>
+ <span class='@default ivar id'>@default</span> <span class='assign token'>=</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='first identifier id'>first</span>
+ <span class='else else kw'>else</span>
+ <span class='@kind ivar id'>@kind</span> <span class='assign token'>=</span> <span class='symbol val'>:fixed</span>
+ <span class='@value ivar id'>@value</span> <span class='assign token'>=</span> <span class='values identifier id'>values</span>
+ <span class='@default ivar id'>@default</span> <span class='assign token'>=</span> <span class='@value ivar id'>@value</span>
+ <span class='end end kw'>end</span>
+ <span class='@default ivar id'>@default</span> <span class='assign token'>=</span> <span class='opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:default</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='opts identifier id'>opts</span><span class='lbrack token'>[</span><span class='symbol val'>:default</span><span class='rbrack token'>]</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+</div>
+
+ <div id="instance_attr_details" class="attr_details">
+ <h2>Instance Attribute Details</h2>
+
+
+ <span id=""></span>
+ <span id="default-instance_method"></span>
+ <div class="method_details first">
+ <p class="signature first" id="default-instance_method">
+
+ - (<tt>Object</tt>) <strong>default</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute default
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+17
+18
+19</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 17</span>
+
+<span class='def def kw'>def</span> <span class='default identifier id'>default</span>
+ <span class='@default ivar id'>@default</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="first-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="first-instance_method">
+
+ - (<tt>Object</tt>) <strong>first</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+kind == :range
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+19
+20
+21</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 19</span>
+
+<span class='def def kw'>def</span> <span class='first identifier id'>first</span>
+ <span class='@first ivar id'>@first</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="kind-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="kind-instance_method">
+
+ - (<tt>Object</tt>) <strong>kind</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute kind
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+17
+18
+19</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 17</span>
+
+<span class='def def kw'>def</span> <span class='kind identifier id'>kind</span>
+ <span class='@kind ivar id'>@kind</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="last-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="last-instance_method">
+
+ - (<tt>Object</tt>) <strong>last</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+kind == :range
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+19
+20
+21</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 19</span>
+
+<span class='def def kw'>def</span> <span class='last identifier id'>last</span>
+ <span class='@last ivar id'>@last</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="name-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="name-instance_method">
+
+ - (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute name
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+17
+18
+19</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 17</span>
+
+<span class='def def kw'>def</span> <span class='name identifier id'>name</span>
+ <span class='@name ivar id'>@name</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="value-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="value-instance_method">
+
+ - (<tt>Object</tt>) <strong>value</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+kind == :fixed
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+23
+24
+25</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 23</span>
+
+<span class='def def kw'>def</span> <span class='value identifier id'>value</span>
+ <span class='@value ivar id'>@value</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="values-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="values-instance_method">
+
+ - (<tt>Object</tt>) <strong>values</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+kind == :enum
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+21
+22
+23</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 21</span>
+
+<span class='def def kw'>def</span> <span class='values identifier id'>values</span>
+ <span class='@values ivar id'>@values</span>
+<span class='end end 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">
+ <p class="signature first" id="fixed?-instance_method">
+
+ - (<tt>Boolean</tt>) <strong>fixed?</strong>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Returns:</h3>
+<ul class="return">
+
+ <li>
+
+ <span class='type'>(<tt>Boolean</tt>)</span>
+
+
+
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+52
+53
+54</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 52</span>
+
+<span class='def def kw'>def</span> <span class='fixed? fid id'>fixed?</span>
+ <span class='kind identifier id'>kind</span> <span class='eq op'>==</span> <span class='symbol val'>:fixed</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="include?-instance_method">
+
+ - (<tt>Boolean</tt>) <strong>include?</strong>(v)
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Returns:</h3>
+<ul class="return">
+
+ <li>
+
+ <span class='type'>(<tt>Boolean</tt>)</span>
+
+
+
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+67
+68
+69
+70
+71
+72
+73
+74
+75</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 67</span>
+
+<span class='def def kw'>def</span> <span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
+ <span class='if if kw'>if</span> <span class='kind identifier id'>kind</span> <span class='eq op'>==</span> <span class='symbol val'>:fixed</span>
+ <span class='return return kw'>return</span> <span class='v identifier id'>v</span> <span class='eq op'>==</span> <span class='value identifier id'>value</span>
+ <span class='elsif elsif kw'>elsif</span> <span class='kind identifier id'>kind</span> <span class='eq op'>==</span> <span class='symbol val'>:range</span>
+ <span class='return return kw'>return</span> <span class='v identifier id'>v</span> <span class='geq op'>>=</span> <span class='first identifier id'>first</span> <span class='andop op'>&&</span> <span class='v identifier id'>v</span> <span class='leq op'><=</span> <span class='last identifier id'>last</span>
+ <span class='else else kw'>else</span>
+ <span class='return return kw'>return</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
+ <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="param-instance_method">
+
+ - (<tt>Object</tt>) <strong>param</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+48
+49
+50</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 48</span>
+
+<span class='def def kw'>def</span> <span class='param identifier id'>param</span>
+ <span class='dstring node'>"hwp_#{name}"</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="to_param-instance_method">
+
+ - (<tt>Object</tt>) <strong>to_param</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 56</span>
+
+<span class='def def kw'>def</span> <span class='to_param identifier id'>to_param</span>
+ <span class='return return kw'>return</span> <span class='nil nil kw'>nil</span> <span class='if if_mod kw'>if</span> <span class='kind identifier id'>kind</span> <span class='eq op'>==</span> <span class='symbol val'>:fixed</span>
+ <span class='if if kw'>if</span> <span class='kind identifier id'>kind</span> <span class='eq op'>==</span> <span class='symbol val'>:range</span>
+ <span class='comment val'># FIXME: We can't validate ranges currently</span>
+ <span class='args identifier id'>args</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='param identifier id'>param</span><span class='comma token'>,</span> <span class='symbol val'>:string</span><span class='comma token'>,</span> <span class='symbol val'>:optional</span><span class='rbrack token'>]</span>
+ <span class='else else kw'>else</span>
+ <span class='args identifier id'>args</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='param identifier id'>param</span><span class='comma token'>,</span> <span class='symbol val'>:string</span><span class='comma token'>,</span> <span class='symbol val'>:optional</span><span class='comma token'>,</span> <span class='values identifier id'>values</span><span class='dot token'>.</span><span class='collect identifier id'>collect</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rbrace token'>}</span> <span class='rbrack token'>]</span>
+ <span class='end end kw'>end</span>
+ <span class='Validation constant id'>Validation</span><span class='colon2 op'>::</span><span class='Param constant id'>Param</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="unit-instance_method">
+
+ - (<tt>Object</tt>) <strong>unit</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+44
+45
+46</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/hardware_profile.rb', line 44</span>
+
+<span class='def def kw'>def</span> <span class='unit identifier id'>unit</span>
+ <span class='HardwareProfile constant id'>HardwareProfile</span><span class='dot token'>.</span><span class='unit identifier id'>unit</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+</div>
+
+ <div id="footer">
+ Generated on Thu Sep 30 14:43:59 2010 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.6.1 (ruby-1.8.6).
+</div>
+
+ </body>
+</html>
\ No newline at end of file
Added: incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,495 @@
+<!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 name="Content-Type" content="text/html; charset=utf8" />
+<title>Class: Deltacloud::StateMachine</title>
+<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</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>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../_index.html">Index (S)</a> »
+ <span class='title'><span class='object_link'><a href="../Deltacloud.html" title="Deltacloud (module)">Deltacloud</a></span></span>
+ »
+ <span class="title">StateMachine</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 id="class_list_link" href="#">Class List</a>
+ <a id="method_list_link" href="#">Method List</a>
+ <a id ="file_list_link" href="#">File List</a>
+</div>
+
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Class: Deltacloud::StateMachine
+
+
+
+</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">Deltacloud::StateMachine</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/deltacloud/state_machine.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+<h2>Defined Under Namespace</h2>
+<p class="children">
+
+
+
+
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="StateMachine/State.html" title="Deltacloud::StateMachine::State (class)">State</a></span>, <span class='object_link'><a href="StateMachine/Transition.html" title="Deltacloud::StateMachine::Transition (class)">Transition</a></span>
+
+
+</p>
+
+
+ <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="#states-instance_method" title="#states (instance method)">- (Object) <strong>states</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute states.
+</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="#finish-instance_method" title="#finish (instance method)">- (Object) <strong>finish</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (StateMachine) <strong>initialize</strong>(&block) </a>
+
+
+
+ </span>
+
+ <span class="note title constructor">constructor</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+A new instance of StateMachine.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(sym, *args) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#start-instance_method" title="#start (instance method)">- (Object) <strong>start</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#state-instance_method" title="#state (instance method)">- (Object) <strong>state</strong>(name) </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">
+ <p class="signature first" id="initialize-instance_method">
+
+ - (<tt><span class='object_link'><a href="" title="Deltacloud::StateMachine (class)">StateMachine</a></span></tt>) <strong>initialize</strong>(&block)
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+A new instance of StateMachine
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+6
+7
+8
+9</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 6</span>
+
+<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='bitand op'>&</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+ <span class='@states ivar id'>@states</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
+ <span class='instance_eval identifier id'>instance_eval</span> <span class='bitand op'>&</span><span class='block identifier id'>block</span> <span class='if if_mod kw'>if</span> <span class='block identifier id'>block</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+</div>
+<div id="method_missing_details" class="method_details_list">
+ <h2>Dynamic Method Handling</h2>
+ <p class="notice this">
+ This class handles dynamic methods through the <tt>method_missing</tt> method
+
+ </p>
+
+ <div class="method_details first">
+ <p class="signature first" id="method_missing-instance_method">
+
+ - (<tt>Object</tt>) <strong>method_missing</strong>(sym, *args)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+28
+29
+30
+31</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 28</span>
+
+<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='sym identifier id'>sym</span><span class='comma token'>,</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+ <span class='return return kw'>return</span> <span class='state identifier id'>state</span><span class='lparen token'>(</span> <span class='sym identifier id'>sym</span> <span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='lparen token'>(</span> <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span> <span class='rparen token'>)</span>
+ <span class='super super kw'>super</span><span class='lparen token'>(</span> <span class='sym identifier id'>sym</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span> <span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+</div>
+
+ <div id="instance_attr_details" class="attr_details">
+ <h2>Instance Attribute Details</h2>
+
+
+ <span id=""></span>
+ <span id="states-instance_method"></span>
+ <div class="method_details first">
+ <p class="signature first" id="states-instance_method">
+
+ - (<tt>Object</tt>) <strong>states</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute states
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+5
+6
+7</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 5</span>
+
+<span class='def def kw'>def</span> <span class='states identifier id'>states</span>
+ <span class='@states ivar id'>@states</span>
+<span class='end end 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">
+ <p class="signature first" id="finish-instance_method">
+
+ - (<tt>Object</tt>) <strong>finish</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+15
+16
+17</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 15</span>
+
+<span class='def def kw'>def</span> <span class='finish identifier id'>finish</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
+ <span class='state identifier id'>state</span><span class='lparen token'>(</span><span class='symbol val'>:finish</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="start-instance_method">
+
+ - (<tt>Object</tt>) <strong>start</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+11
+12
+13</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 11</span>
+
+<span class='def def kw'>def</span> <span class='start identifier id'>start</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
+ <span class='state identifier id'>state</span><span class='lparen token'>(</span><span class='symbol val'>:start</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="state-instance_method">
+
+ - (<tt>Object</tt>) <strong>state</strong>(name)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+19
+20
+21
+22
+23
+24
+25
+26</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 19</span>
+
+<span class='def def kw'>def</span> <span class='state identifier id'>state</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
+ <span class='state identifier id'>state</span> <span class='assign token'>=</span> <span class='@states ivar id'>@states</span><span class='dot token'>.</span><span class='find identifier id'>find</span><span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='e identifier id'>e</span><span class='bitor op'>|</span> <span class='e identifier id'>e</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='eq op'>==</span> <span class='name identifier id'>name</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span><span class='rbrace token'>}</span>
+ <span class='if if kw'>if</span> <span class='lparen token'>(</span> <span class='state identifier id'>state</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='rparen token'>)</span>
+ <span class='state identifier id'>state</span> <span class='assign token'>=</span> <span class='State constant id'>State</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span> <span class='self self kw'>self</span><span class='comma token'>,</span> <span class='name identifier id'>name</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span> <span class='rparen token'>)</span>
+ <span class='@states ivar id'>@states</span> <span class='lshft op'><<</span> <span class='state identifier id'>state</span>
+ <span class='end end kw'>end</span>
+ <span class='state identifier id'>state</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+</div>
+
+ <div id="footer">
+ Generated on Thu Sep 30 14:43:55 2010 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.6.1 (ruby-1.8.6).
+</div>
+
+ </body>
+</html>
\ No newline at end of file
Added: incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/State.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/State.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/State.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/State.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,443 @@
+<!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 name="Content-Type" content="text/html; charset=utf8" />
+<title>Class: Deltacloud::StateMachine::State</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '../..';
+ if (relpath != '') relpath += '/';
+</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>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../../_index.html">Index (S)</a> »
+ <span class='title'><span class='object_link'><a href="../../Deltacloud.html" title="Deltacloud (module)">Deltacloud</a></span></span> » <span class='title'><span class='object_link'><a href="../StateMachine.html" title="Deltacloud::StateMachine (class)">StateMachine</a></span></span>
+ »
+ <span class="title">State</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 id="class_list_link" href="#">Class List</a>
+ <a id="method_list_link" href="#">Method List</a>
+ <a id ="file_list_link" href="#">File List</a>
+</div>
+
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Class: Deltacloud::StateMachine::State
+
+
+
+</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">Deltacloud::StateMachine::State</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/deltacloud/state_machine.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+ <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="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute name.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#transitions-instance_method" title="#transitions (instance method)">- (Object) <strong>transitions</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute transitions.
+</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="#initialize-instance_method" title="#initialize (instance method)">- (State) <strong>initialize</strong>(machine, name) </a>
+
+
+
+ </span>
+
+ <span class="note title constructor">constructor</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+A new instance of State.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#to-instance_method" title="#to (instance method)">- (Object) <strong>to</strong>(destination_name) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </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">
+ <p class="signature first" id="initialize-instance_method">
+
+ - (<tt><span class='object_link'><a href="" title="Deltacloud::StateMachine::State (class)">State</a></span></tt>) <strong>initialize</strong>(machine, name)
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+A new instance of State
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+38
+39
+40
+41
+42</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 38</span>
+
+<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='machine identifier id'>machine</span><span class='comma token'>,</span> <span class='name identifier id'>name</span><span class='rparen token'>)</span>
+ <span class='@machine ivar id'>@machine</span> <span class='assign token'>=</span> <span class='machine identifier id'>machine</span>
+ <span class='@name ivar id'>@name</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span>
+ <span class='@transitions ivar id'>@transitions</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+</div>
+
+ <div id="instance_attr_details" class="attr_details">
+ <h2>Instance Attribute Details</h2>
+
+
+ <span id=""></span>
+ <span id="name-instance_method"></span>
+ <div class="method_details first">
+ <p class="signature first" id="name-instance_method">
+
+ - (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute name
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+35
+36
+37</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 35</span>
+
+<span class='def def kw'>def</span> <span class='name identifier id'>name</span>
+ <span class='@name ivar id'>@name</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="transitions-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="transitions-instance_method">
+
+ - (<tt>Object</tt>) <strong>transitions</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute transitions
+</p>
+
+
+ </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/deltacloud/state_machine.rb', line 36</span>
+
+<span class='def def kw'>def</span> <span class='transitions identifier id'>transitions</span>
+ <span class='@transitions ivar id'>@transitions</span>
+<span class='end end 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">
+ <p class="signature first" id="to-instance_method">
+
+ - (<tt>Object</tt>) <strong>to</strong>(destination_name)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+48
+49
+50
+51
+52
+53</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 48</span>
+
+<span class='def def kw'>def</span> <span class='to identifier id'>to</span><span class='lparen token'>(</span><span class='destination_name identifier id'>destination_name</span><span class='rparen token'>)</span>
+ <span class='destination identifier id'>destination</span> <span class='assign token'>=</span> <span class='@machine ivar id'>@machine</span><span class='dot token'>.</span><span class='state identifier id'>state</span><span class='lparen token'>(</span><span class='destination_name identifier id'>destination_name</span><span class='rparen token'>)</span>
+ <span class='transition identifier id'>transition</span> <span class='assign token'>=</span> <span class='Transition constant id'>Transition</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span> <span class='@machine ivar id'>@machine</span><span class='comma token'>,</span> <span class='destination identifier id'>destination</span> <span class='rparen token'>)</span>
+ <span class='@transitions ivar id'>@transitions</span> <span class='lshft op'><<</span> <span class='transition identifier id'>transition</span>
+ <span class='transition identifier id'>transition</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="to_s-instance_method">
+
+ - (<tt>Object</tt>) <strong>to_s</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+44
+45
+46</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 44</span>
+
+<span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+</div>
+
+ <div id="footer">
+ Generated on Thu Sep 30 14:43:51 2010 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.6.1 (ruby-1.8.6).
+</div>
+
+ </body>
+</html>
\ No newline at end of file
Added: incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/Transition.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/Transition.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/Transition.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Deltacloud/StateMachine/Transition.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,510 @@
+<!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 name="Content-Type" content="text/html; charset=utf8" />
+<title>Class: Deltacloud::StateMachine::Transition</title>
+<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '../..';
+ if (relpath != '') relpath += '/';
+</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>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../../_index.html">Index (T)</a> »
+ <span class='title'><span class='object_link'><a href="../../Deltacloud.html" title="Deltacloud (module)">Deltacloud</a></span></span> » <span class='title'><span class='object_link'><a href="../StateMachine.html" title="Deltacloud::StateMachine (class)">StateMachine</a></span></span>
+ »
+ <span class="title">Transition</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 id="class_list_link" href="#">Class List</a>
+ <a id="method_list_link" href="#">Method List</a>
+ <a id ="file_list_link" href="#">File List</a>
+</div>
+
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Class: Deltacloud::StateMachine::Transition
+
+
+
+</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">Deltacloud::StateMachine::Transition</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/deltacloud/state_machine.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+ <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="#action-instance_method" title="#action (instance method)">- (Object) <strong>action</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute action.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#destination-instance_method" title="#destination (instance method)">- (Object) <strong>destination</strong> </a>
+
+
+
+ </span>
+
+
+ <span class="note title readonly">readonly</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Returns the value of attribute destination.
+</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="#automatically-instance_method" title="#automatically (instance method)">- (Object) <strong>automatically</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#automatically%3F-instance_method" title="#automatically? (instance method)">- (Boolean) <strong>automatically?</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Transition) <strong>initialize</strong>(machine, destination) </a>
+
+
+
+ </span>
+
+ <span class="note title constructor">constructor</span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+A new instance of Transition.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#on-instance_method" title="#on (instance method)">- (Object) <strong>on</strong>(action) </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">
+ <p class="signature first" id="initialize-instance_method">
+
+ - (<tt><span class='object_link'><a href="" title="Deltacloud::StateMachine::Transition (class)">Transition</a></span></tt>) <strong>initialize</strong>(machine, destination)
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+A new instance of Transition
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+62
+63
+64
+65
+66
+67</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 62</span>
+
+<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='machine identifier id'>machine</span><span class='comma token'>,</span> <span class='destination identifier id'>destination</span><span class='rparen token'>)</span>
+ <span class='@machine ivar id'>@machine</span> <span class='assign token'>=</span> <span class='machine identifier id'>machine</span>
+ <span class='@destination ivar id'>@destination</span> <span class='assign token'>=</span> <span class='destination identifier id'>destination</span>
+ <span class='@auto ivar id'>@auto</span> <span class='assign token'>=</span> <span class='false false kw'>false</span>
+ <span class='@action ivar id'>@action</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+</div>
+
+ <div id="instance_attr_details" class="attr_details">
+ <h2>Instance Attribute Details</h2>
+
+
+ <span id=""></span>
+ <span id="action-instance_method"></span>
+ <div class="method_details first">
+ <p class="signature first" id="action-instance_method">
+
+ - (<tt>Object</tt>) <strong>action</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute action
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+60
+61
+62</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 60</span>
+
+<span class='def def kw'>def</span> <span class='action identifier id'>action</span>
+ <span class='@action ivar id'>@action</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+
+ <span id=""></span>
+ <span id="destination-instance_method"></span>
+ <div class="method_details ">
+ <p class="signature " id="destination-instance_method">
+
+ - (<tt>Object</tt>) <strong>destination</strong> <span class="extras">(readonly)</span>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Returns the value of attribute destination
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+59
+60
+61</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 59</span>
+
+<span class='def def kw'>def</span> <span class='destination identifier id'>destination</span>
+ <span class='@destination ivar id'>@destination</span>
+<span class='end end 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">
+ <p class="signature first" id="automatically-instance_method">
+
+ - (<tt>Object</tt>) <strong>automatically</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+69
+70
+71</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 69</span>
+
+<span class='def def kw'>def</span> <span class='automatically identifier id'>automatically</span>
+ <span class='@auto ivar id'>@auto</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="automatically?-instance_method">
+
+ - (<tt>Boolean</tt>) <strong>automatically?</strong>
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Returns:</h3>
+<ul class="return">
+
+ <li>
+
+ <span class='type'>(<tt>Boolean</tt>)</span>
+
+
+
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+73
+74
+75</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 73</span>
+
+<span class='def def kw'>def</span> <span class='automatically? fid id'>automatically?</span>
+ <span class='@auto ivar id'>@auto</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="on-instance_method">
+
+ - (<tt>Object</tt>) <strong>on</strong>(action)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+77
+78
+79</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/state_machine.rb', line 77</span>
+
+<span class='def def kw'>def</span> <span class='on identifier id'>on</span><span class='lparen token'>(</span><span class='action identifier id'>action</span><span class='rparen token'>)</span>
+ <span class='@action ivar id'>@action</span> <span class='assign token'>=</span> <span class='action identifier id'>action</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+</div>
+
+ <div id="footer">
+ Generated on Thu Sep 30 14:43:52 2010 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.6.1 (ruby-1.8.6).
+</div>
+
+ </body>
+</html>
\ No newline at end of file
Added: incubator/deltacloud/trunk/site/api-docs/Deltacloud/UndeclaredFeatureError.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Deltacloud/UndeclaredFeatureError.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Deltacloud/UndeclaredFeatureError.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Deltacloud/UndeclaredFeatureError.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,111 @@
+<!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 name="Content-Type" content="text/html; charset=utf8" />
+<title>Exception: Deltacloud::UndeclaredFeatureError</title>
+<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</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>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../_index.html">Index (U)</a> »
+ <span class='title'><span class='object_link'><a href="../Deltacloud.html" title="Deltacloud (module)">Deltacloud</a></span></span>
+ »
+ <span class="title">UndeclaredFeatureError</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 id="class_list_link" href="#">Class List</a>
+ <a id="method_list_link" href="#">Method List</a>
+ <a id ="file_list_link" href="#">File List</a>
+</div>
+
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Exception: Deltacloud::UndeclaredFeatureError
+
+
+
+</h1>
+
+<dl class="box">
+
+ <dt class="r1">Inherits:</dt>
+ <dd class="r1">
+ <span class="inheritName"><span class='object_link'><a href="FeatureError.html" title="Deltacloud::FeatureError (class)">FeatureError</a></span></span>
+
+ <ul class="fullTree">
+ <li>Object</li>
+
+ <li class="next">StandardError</li>
+
+ <li class="next"><span class='object_link'><a href="FeatureError.html" title="Deltacloud::FeatureError (class)">FeatureError</a></span></li>
+
+ <li class="next">Deltacloud::UndeclaredFeatureError</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/deltacloud/base_driver/features.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</div>
+
+ <div id="footer">
+ Generated on Thu Sep 30 14:43:56 2010 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.6.1 (ruby-1.8.6).
+</div>
+
+ </body>
+</html>
\ No newline at end of file
Added: incubator/deltacloud/trunk/site/api-docs/Deltacloud/Validation.html
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/site/api-docs/Deltacloud/Validation.html?rev=1003045&view=auto
==============================================================================
--- incubator/deltacloud/trunk/site/api-docs/Deltacloud/Validation.html (added)
+++ incubator/deltacloud/trunk/site/api-docs/Deltacloud/Validation.html Thu Sep 30 12:48:00 2010
@@ -0,0 +1,425 @@
+<!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 name="Content-Type" content="text/html; charset=utf8" />
+<title>Module: Deltacloud::Validation</title>
+<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</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>
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header">
+ <div id="menu">
+
+ <a href="../_index.html">Index (V)</a> »
+ <span class='title'><span class='object_link'><a href="../Deltacloud.html" title="Deltacloud (module)">Deltacloud</a></span></span>
+ »
+ <span class="title">Validation</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 id="class_list_link" href="#">Class List</a>
+ <a id="method_list_link" href="#">Method List</a>
+ <a id ="file_list_link" href="#">File List</a>
+</div>
+
+ <div class="clear"></div>
+ </div>
+
+ <iframe id="search_frame"></iframe>
+
+ <div id="content"><h1>Module: Deltacloud::Validation
+
+
+
+</h1>
+
+<dl class="box">
+
+
+
+
+
+
+
+ <dt class="r1">Included in:</dt>
+ <dd class="r1"><span class='object_link'><a href="BaseDriver/Operation.html" title="Deltacloud::BaseDriver::Operation (class)">BaseDriver::Operation</a></span>, <span class='object_link'><a href="../Sinatra/Rabbit/Operation.html" title="Sinatra::Rabbit::Operation (class)">Sinatra::Rabbit::Operation</a></span></dd>
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/deltacloud/validation.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+<h2>Defined Under Namespace</h2>
+<p class="children">
+
+
+
+
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Validation/Failure.html" title="Deltacloud::Validation::Failure (class)">Failure</a></span>, <span class='object_link'><a href="Validation/Param.html" title="Deltacloud::Validation::Param (class)">Param</a></span>
+
+
+</p>
+
+
+
+
+ <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="#add_params-instance_method" title="#add_params (instance method)">- (Object) <strong>add_params</strong>(new) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>
+Add the parameters in hash <tt>new</tt> to already existing parameters.
+</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#each_param-instance_method" title="#each_param (instance method)">- (Object) <strong>each_param</strong>(&block) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#param-instance_method" title="#param (instance method)">- (Object) <strong>param</strong>(*args) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#params-instance_method" title="#params (instance method)">- (Object) <strong>params</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#validate-instance_method" title="#validate (instance method)">- (Object) <strong>validate</strong>(values) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ </ul>
+
+
+
+
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <p class="signature first" id="add_params-instance_method">
+
+ - (<tt>Object</tt>) <strong>add_params</strong>(new)
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Add the parameters in hash <tt>new</tt> to already existing parameters. If
+<tt>new</tt> contains a parameter with an already existing name, the old
+definition is clobbered.
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+49
+50
+51
+52
+53</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/validation.rb', line 49</span>
+
+<span class='def def kw'>def</span> <span class='add_params identifier id'>add_params</span><span class='lparen token'>(</span><span class='new identifier id'>new</span><span class='rparen token'>)</span>
+ <span class='comment val'># We do not check for duplication on purpose: multiple calls</span>
+ <span class='comment val'># to add_params should be cumulative</span>
+ <span class='new identifier id'>new</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='p identifier id'>p</span><span class='bitor op'>|</span> <span class='@params ivar id'>@params</span><span class='lbrack token'>[</span><span class='p identifier id'>p</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span> <span class='rbrace token'>}</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="each_param-instance_method">
+
+ - (<tt>Object</tt>) <strong>each_param</strong>(&block)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+55
+56
+57</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/validation.rb', line 55</span>
+
+<span class='def def kw'>def</span> <span class='each_param identifier id'>each_param</span><span class='lparen token'>(</span><span class='bitand op'>&</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+ <span class='params identifier id'>params</span><span class='dot token'>.</span><span class='each_value identifier id'>each_value</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='p identifier id'>p</span><span class='bitor op'>|</span> <span class='yield yield kw'>yield</span> <span class='p identifier id'>p</span> <span class='rbrace token'>}</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="param-instance_method">
+
+ - (<tt>Object</tt>) <strong>param</strong>(*args)
+
+
+
+</p><div class="docstring">
+ <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Raises:</h3>
+<ul class="raise">
+
+ <li>
+
+ <span class='type'>(<tt>DuplicateParamException</tt>)</span>
+
+
+
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+35
+36
+37
+38
+39</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/validation.rb', line 35</span>
+
+<span class='def def kw'>def</span> <span class='param identifier id'>param</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+ <span class='raise identifier id'>raise</span> <span class='DuplicateParamException constant id'>DuplicateParamException</span> <span class='if if_mod kw'>if</span> <span class='params identifier id'>params</span><span class='lbrack token'>[</span><span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span>
+ <span class='p identifier id'>p</span> <span class='assign token'>=</span> <span class='Param constant id'>Param</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+ <span class='params identifier id'>params</span><span class='lbrack token'>[</span><span class='p identifier id'>p</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='p identifier id'>p</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="params-instance_method">
+
+ - (<tt>Object</tt>) <strong>params</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+41
+42
+43
+44</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/validation.rb', line 41</span>
+
+<span class='def def kw'>def</span> <span class='params identifier id'>params</span>
+ <span class='@params ivar id'>@params</span> <span class='opasgn op'>||=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
+ <span class='@params ivar id'>@params</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="validate-instance_method">
+
+ - (<tt>Object</tt>) <strong>validate</strong>(values)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/deltacloud/validation.rb', line 59</span>
+
+<span class='def def kw'>def</span> <span class='validate identifier id'>validate</span><span class='lparen token'>(</span><span class='values identifier id'>values</span><span class='rparen token'>)</span>
+ <span class='each_param identifier id'>each_param</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='p identifier id'>p</span><span class='bitor op'>|</span>
+ <span class='if if kw'>if</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='required? fid id'>required?</span> <span class='and and kw'>and</span> <span class='not not kw'>not</span> <span class='values identifier id'>values</span><span class='lbrack token'>[</span><span class='p identifier id'>p</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='rbrack token'>]</span>
+ <span class='raise identifier id'>raise</span> <span class='Failure constant id'>Failure</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='p identifier id'>p</span><span class='comma token'>,</span> <span class='dstring node'>"Required parameter #{p.name} not found"</span><span class='rparen token'>)</span>
+ <span class='end end kw'>end</span>
+ <span class='if if kw'>if</span> <span class='values identifier id'>values</span><span class='lbrack token'>[</span><span class='p identifier id'>p</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='rbrack token'>]</span> <span class='and and kw'>and</span> <span class='not not kw'>not</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='options identifier id'>options</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span> <span class='and and kw'>and</span>
+ <span class='not not kw'>not</span> <span class='p identifier id'>p</span><span class='dot token'>.</span><span class='options identifier id'>options</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='values identifier id'>values</span><span class='lbrack token'>[</span><span class='p identifier id'>p</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
+ <span class='raise identifier id'>raise</span> <span class='Failure constant id'>Failure</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='p identifier id'>p</span><span class='comma token'>,</span> <span class='dstring node'>"Parameter #{p.name} has value #{values[p.name]} which is not in #{p.options.join(", ")}"</span><span class='rparen token'>)</span>
+ <span class='end end kw'>end</span>
+ <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+</div>
+
+ <div id="footer">
+ Generated on Thu Sep 30 14:43:52 2010 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.6.1 (ruby-1.8.6).
+</div>
+
+ </body>
+</html>
\ No newline at end of file