Sha256: a0e2845e9263321cee2daa2b78a5d66108580bfe3faece6471ff91ca00936dce

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 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>default_mail (Autobuild::MailReporter)</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/autobuild/reporting.rb, line 72</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_mail</span>
            <span class="ruby-constant">Etc</span><span class="ruby-operator">::</span><span class="ruby-identifier">endpwent</span>
            <span class="ruby-identifier">uname</span> = <span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">pwent</span> = <span class="ruby-constant">Etc</span><span class="ruby-operator">::</span><span class="ruby-identifier">getpwent</span>)
                        <span class="ruby-keyword kw">break</span> (<span class="ruby-identifier">pwent</span>.<span class="ruby-identifier">name</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pwent</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Process</span>.<span class="ruby-identifier">uid</span>
                    <span class="ruby-keyword kw">end</span>

            <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;FATAL: cannot find a user with uid=#{Process.uid}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">uname</span>
            <span class="ruby-node">&quot;#{pwent.name}@#{Socket.gethostname}&quot;</span>
        <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
autobuild-0.6 doc/classes/Autobuild/MailReporter.src/M000045.html
autobuild-0.6 doc/classes/Autobuild/MailReporter.src/M000073.html