<?xml version="1.0" encoding="iso-8859-1"?> <!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> <title>File: server.rb</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="fileHeader"> <h1>server.rb</h1> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Path:</strong></td> <td>server.rb </td> </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> <td>Thu Sep 29 20:50:18 +0000 2011</td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at </p> <pre> http://www.apache.org/licenses/LICENSE-2.0 </pre> <p> Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. </p> </div> <div id="requires-list"> <h3 class="section-bar">Required files</h3> <div class="name-list"> sinatra <a href="deltacloud_rb.html">deltacloud</a> drivers json sinatra/rack_accept sinatra/static_assets sinatra/rabbit sinatra/lazy_auth erb haml open3 <a href="lib/deltacloud/helpers/blob_stream_rb.html">lib/deltacloud/helpers/blob_stream</a> sinatra/rack_driver_select sinatra/rack_runtime sinatra/rack_etag sinatra/rack_date sinatra/rack_matrix_params sinatra/rack_syslog </div> </div> </div> </div> <!-- if includes --> <div id="includes"> <h3 class="section-bar">Included Modules</h3> <div id="includes-list"> <span class="include-name"><a href="../classes/Deltacloud/Drivers.html">Deltacloud::Drivers</a></span> </div> </div> <div id="section"> <div id="constants-list"> <h3 class="section-bar">Constants</h3> <div class="name-list"> <table summary="Constants"> <tr class="top-aligned-row context-row"> <td class="context-item-name">HOSTNAME</td> <td>=</td> <td class="context-item-value">ENV['API_HOST'] ? ENV['API_HOST'] : nil</td> <td width="3em"> </td> <td class="context-item-desc"> You could use $API_HOST environment variable to change your hostname to whatever you want (eg. if you running API behind NAT) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">NEW_BLOB_FORM_ID</td> <td>=</td> <td class="context-item-value">"new_blob_form_d15cfd90"</td> <td width="3em"> </td> <td class="context-item-desc"> The URL for getting the new blob form for the HTML UI looks like the URL for getting the details of an existing blob. To make collisions less likely, we use a name for the form that will rarely be the name of an existing blob </td> </tr> </table> </div> </div> <!-- if method_list --> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>