/docs/UnpackStrategy/Fossil.html
HTML | 294 lines | 159 code | 135 blank | 0 comment | 0 complexity | 829376ebffd32b2c6becd55a0b5316af MD5 | raw file
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>
- Class: UnpackStrategy::Fossil
-
- — Homebrew Ruby API
-
- </title>
- <link rel="stylesheet" href="../css/style.css" type="text/css" />
- <link rel="stylesheet" href="../css/common.css" type="text/css" />
- <script type="text/javascript">
- pathId = "UnpackStrategy::Fossil";
- 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>
- <div class="nav_wrap">
- <iframe id="nav" src="../class_list.html?1"></iframe>
- <div id="resizer"></div>
- </div>
- <div id="main" tabindex="-1">
- <div id="header">
- <div id="menu">
-
- <a href="../_index.html">Index (F)</a> »
- <span class='title'><span class='object_link'><a href="../UnpackStrategy.html" title="UnpackStrategy (module)">UnpackStrategy</a></span></span>
- »
- <span class="title">Fossil</span>
-
- </div>
- <div id="search">
-
- <a class="full_list_link" id="class_list_link"
- href="../class_list.html">
- <svg width="24" height="24">
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
- </svg>
- </a>
-
- </div>
- <div class="clear"></div>
- </div>
- <div id="content"><h1>Class: UnpackStrategy::Fossil
-
-
-
- </h1>
- <div class="box_info">
-
- <dl>
- <dt>Inherits:</dt>
- <dd>
- <span class="inheritName">Object</span>
-
- <ul class="fullTree">
- <li>Object</li>
-
- <li class="next">UnpackStrategy::Fossil</li>
-
- </ul>
- <a href="#" class="inheritanceTree">show all</a>
-
- </dd>
- </dl>
-
-
-
-
-
- <dl>
- <dt>Includes:</dt>
- <dd><span class='object_link'><a href="../UnpackStrategy.html" title="UnpackStrategy (module)">UnpackStrategy</a></span></dd>
- </dl>
-
-
-
-
- <dl>
- <dt>Defined in:</dt>
- <dd>brew/Library/Homebrew/unpack_strategy/fossil.rb</dd>
- </dl>
-
- </div>
- <h2>Instance Attribute Summary</h2>
-
- <h3 class="inherited">Attributes included from <span class='object_link'><a href="../UnpackStrategy.html" title="UnpackStrategy (module)">UnpackStrategy</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="../UnpackStrategy.html#merge_xattrs-instance_method" title="UnpackStrategy#merge_xattrs (method)">#merge_xattrs</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#path-instance_method" title="UnpackStrategy#path (method)">#path</a></span></p>
-
- <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="#can_extract%3F-class_method" title="can_extract? (class method)">.<strong>can_extract?</strong>(path) ⇒ Boolean </a>
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- </div></span>
-
- </li>
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#extensions-class_method" title="extensions (class method)">.<strong>extensions</strong> ⇒ Object </a>
-
-
- </span>
-
-
-
-
-
-
-
-
- <span class="summary_desc"><div class='inline'>
- </div></span>
-
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
- <h3 class="inherited">Methods included from <span class='object_link'><a href="../UnpackStrategy.html" title="UnpackStrategy (module)">UnpackStrategy</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="../UnpackStrategy.html#dependencies-instance_method" title="UnpackStrategy#dependencies (method)">#dependencies</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#detect-class_method" title="UnpackStrategy.detect (method)">detect</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#extract-instance_method" title="UnpackStrategy#extract (method)">#extract</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#extract_nestedly-instance_method" title="UnpackStrategy#extract_nestedly (method)">#extract_nestedly</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#from_extension-class_method" title="UnpackStrategy.from_extension (method)">from_extension</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#from_magic-class_method" title="UnpackStrategy.from_magic (method)">from_magic</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#from_type-class_method" title="UnpackStrategy.from_type (method)">from_type</a></span>, <span class='object_link'><a href="../UnpackStrategy.html#initialize-instance_method" title="UnpackStrategy#initialize (method)">#initialize</a></span></p>
- <div id="class_method_details" class="method_details_list">
- <h2>Class Method Details</h2>
-
- <div class="method_details first">
- <h3 class="signature first" id="can_extract?-class_method">
-
- .<strong>can_extract?</strong>(path) ⇒ <tt>Boolean</tt>
-
-
-
- </h3><div class="docstring">
- <div class="discussion">
-
- </div>
- </div>
- <div class="tags">
-
- <p class="tag_title">Returns:</p>
- <ul class="return">
-
- <li>
-
-
- <span class='type'>(<tt>Boolean</tt>)</span>
-
-
-
- </li>
-
- </ul>
- </div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
- 13
- 14
- 15
- 16
- 17
- 18
- 19</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'brew/Library/Homebrew/unpack_strategy/fossil.rb', line 13</span>
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_can_extract?'>can_extract?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
- <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_magic_number'>magic_number</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\ASQLite format 3\000</span><span class='regexp_end'>/n</span></span><span class='rparen'>)</span>
- <span class='comment'># Fossil database is made up of artifacts, so the `artifact` table must exist.
- </span> <span class='id identifier rubyid_query'>query</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>select count(*) from sqlite_master where type = 'view' and name = 'artifact'</span><span class='tstring_end'>"</span></span>
- <span class='id identifier rubyid_system_command'>system_command</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>sqlite3</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>args:</span> <span class='lbracket'>[</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_stdout'>stdout</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>==</span> <span class='int'>1</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- <div class="method_details ">
- <h3 class="signature " id="extensions-class_method">
-
- .<strong>extensions</strong> ⇒ <tt>Object</tt>
-
-
-
- </h3><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
- 9
- 10
- 11</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'brew/Library/Homebrew/unpack_strategy/fossil.rb', line 9</span>
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extensions'>extensions</span>
- <span class='lbracket'>[</span><span class='rbracket'>]</span>
- <span class='kw'>end</span></pre>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
- </div>
- <div id="footer">
- Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
- </div>
- </div>
- </body>
- </html>