Sha256: d00c9420ad6099a6e8aac64f13c50077d416dfac29f4c4dc3b8fe5fd72d7a92c

Contents?: true

Size: 1.45 KB

Versions: 4

Compression:

Stored size: 1.45 KB

Contents

<?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>
<head>
  <title>valid_user? (Mongrel::Command::Base)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <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/mongrel/command.rb, line 117</span>
117:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_user?</span>(<span class="ruby-identifier">user</span>)
118:         <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@group</span>, <span class="ruby-value str">&quot;You must also specify a group.&quot;</span>)
119:         <span class="ruby-keyword kw">begin</span>
120:           <span class="ruby-constant">Etc</span>.<span class="ruby-identifier">getpwnam</span>(<span class="ruby-identifier">user</span>)
121:         <span class="ruby-keyword kw">rescue</span>
122:           <span class="ruby-identifier">failure</span> <span class="ruby-node">&quot;User does not exist: #{user}&quot;</span>
123:           <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
124:         <span class="ruby-keyword kw">end</span>
125:       <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongrel-0.3.13.3 doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html
mongrel-0.3.13.4 doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html
mongrel-1.0.1 doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html
mongrel-1.0 doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html