Sha256: 56cbaa990d1a6ceb0d6a981cf575e866b1225e704127b725ead29edbc61b5508

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 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>with_timeout (Grit::Git)</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/grit/git.rb, line 42</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">with_timeout</span>(<span class="ruby-identifier">timeout</span> = <span class="ruby-value">10</span>.<span class="ruby-identifier">seconds</span>)
      <span class="ruby-identifier">old_timeout</span> = <span class="ruby-constant">Grit</span><span class="ruby-operator">::</span><span class="ruby-constant">Git</span>.<span class="ruby-identifier">git_timeout</span>
      <span class="ruby-constant">Grit</span><span class="ruby-operator">::</span><span class="ruby-constant">Git</span>.<span class="ruby-identifier">git_timeout</span> = <span class="ruby-identifier">timeout</span>
      <span class="ruby-keyword kw">yield</span>
      <span class="ruby-constant">Grit</span><span class="ruby-operator">::</span><span class="ruby-constant">Git</span>.<span class="ruby-identifier">git_timeout</span> = <span class="ruby-identifier">old_timeout</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ginst-2009.12.8 vendor/plugins/grit/doc/classes/Grit/Git.src/M000487.html
ginst-2009.11.24 vendor/plugins/grit/doc/classes/Grit/Git.src/M000487.html
ginst-2009.11.23 vendor/plugins/grit/doc/classes/Grit/Git.src/M000487.html
ginst-2.0.1 vendor/plugins/grit/doc/classes/Grit/Git.src/M000487.html
ginst-2.0.0 vendor/plugins/grit/doc/classes/Grit/Git.src/M000487.html