<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>mismatch_depot (CaseTrigger)</title>
<link rel=StyleSheet href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body bgcolor="white">
<pre><span class="cmt"># File checkcase.rb, line 102</span>
<span class="kw">def</span> mismatch_depot( depot )
match = <span class="kw">false</span>
lcdepot = depot.downcase
p4.run_depots.each <span class="kw">do</span>
|line|
dname = line.split()[ 1 ]
lcdname = dname.downcase
<span class="kw">if</span> ( lcdname == lcdepot && dname != depot )
match = <span class="kw">true</span>
@mismatch = <span class="str">"//"</span> + dname
<span class="kw">break</span>
<span class="kw">end</span>
<span class="kw">end</span>
match
<span class="kw">end</span></pre>
</body>
</html>
# |
Change |
User |
Description |
Committed |
|
#1
|
3637 |
Tony Smith |
Add RDoc documentation to the sample triggers. |
|
|