Sha256: 984a3f70ad914b7bf45f1a4965e6e5491bd4365e13b0fc0e66eb80bd065f0136

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>get (Keystone::Os)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/keystone/os.rb, line 14</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>
    <span class="ruby-keyword kw">case</span> <span class="ruby-constant">RUBY_PLATFORM</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/linux/</span>
      <span class="ruby-comment cmt"># TODO only centos impremented</span>
      <span class="ruby-constant">Keystone</span><span class="ruby-operator">::</span><span class="ruby-constant">Os</span><span class="ruby-operator">::</span><span class="ruby-constant">Linux</span>.<span class="ruby-identifier">get</span>()
    <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/darwin/</span>
      <span class="ruby-comment cmt"># TODO only osx impremented</span>
      <span class="ruby-constant">Keystone</span><span class="ruby-operator">::</span><span class="ruby-constant">Os</span><span class="ruby-operator">::</span><span class="ruby-constant">Osx</span>.<span class="ruby-identifier">new</span>
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-comment cmt"># TODO</span>
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keystone-0.0.32 doc/classes/Keystone/Os.src/M000038.html
keystone-0.0.31 doc/classes/Keystone/Os.src/M000038.html
keystone-0.0.30 doc/classes/Keystone/Os.src/M000038.html
keystone-0.0.29 doc/classes/Keystone/Os.src/M000038.html