GroupMgr.html #1

  • //
  • guest/
  • tony_smith/
  • perforce/
  • utils/
  • doc/
  • specsaver/
  • classes/
  • GroupMgr.html
  • View
  • Commits
  • Open Download .zip Download (4 KB)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html><head>
  <title>Class: GroupMgr</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" />
  <script type="text/javascript" language="JavaScript">
  <!--
  function popCode(url) {
    window.open(url, "Code", 
          "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }
  //-->
  </script>
</head>

<body bgcolor="white">

<table summary="Information on class" width="100%" border="0" cellspacing="0">
 <tr class="title-row">
 <td class="big-title-font">
   <sup><font color="aqua">Class</font></sup> GroupMgr
 </td>
 <td align="right">
   <table summary="layout" cellspacing="0" cellpadding="2">
     <tr valign="top">
      <td class="small-title-font">In:</td>
      <td class="small-title-font">
        <a href="../files/specsaver_rb.html" class="aqua">
specsaver.rb
         </a>
<br />
      </td>
     </tr>
     <tr>
      <td class="small-title-font">Parent:</td>
      <td class="small-title-font">
        <a href="GenSpecMgr.html" class="aqua">
GenSpecMgr
         </a>
      </td>
     </tr>
   </table>
  </td>
  </tr>
</table>
  <!-- banner header -->



<div class="description"><p>
<a href="GenSpecMgr.html">GenSpecMgr</a> subclass for Groups. Groups don't
have an update date so we have to depend on revert -a doing the honours.
&quot;p4 groups&quot; also doesn't support tagged output at the moment
(2002.1) so what are hashes in the other classes are just group names in
this one.
</p>
</div>


<table summary="Methods" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Methods</td></tr>
</table>
<div class="name-list">
<a href="#M000020">changed?</a>&nbsp; &nbsp;
<a href="#M000019">new</a>&nbsp; &nbsp;
<a href="#M000021">spec_file</a>&nbsp; &nbsp;
<a href="#M000022">type2name</a>&nbsp; &nbsp;
</div>




<table summary="Method list" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Public Class methods</td></tr>
</table>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000019"></a>
<b>new</b>( root, p4t, p4u )
</td></tr>
</table>
<div class="description">
<p>
Constructor. Provide the client root and tagged and non-tagged P4 client
instances
</p>
</div>
<pre class="source">
<span class="cmt"># File specsaver.rb, line 379</span>
    <span class="kw">def</span> initialize( root, p4t, p4u )
	<span class="kw">super</span>( <span class="str">&quot;group&quot;</span>, root, p4t, p4u )
    <span class="kw">end</span>
</pre>
<table summary="Method list" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Protected Instance methods</td></tr>
</table>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000020"></a>
<b>changed?</b>( group, since )
</td></tr>
</table>
<div class="description">
<p>
Groups are always considered to have changed - until proven otherwise so we
override the <a href="GenSpecMgr.html">GenSpecMgr</a> implementation of
changed? and always return true
</p>
</div>
<pre class="source">
<span class="cmt"># File specsaver.rb, line 390</span>
    <span class="kw">def</span> changed?( group, since )
	<span class="kw">true</span>
    <span class="kw">end</span>
</pre>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000021"></a>
<b>spec_file</b>( group )
</td></tr>
</table>
<div class="description">
<p>
Map a group name into a depot path. Can't use the default implementation as
we don't have a hash available, just a group name
</p>
</div>
<pre class="source">
<span class="cmt"># File specsaver.rb, line 398</span>
    <span class="kw">def</span> spec_file( group )
	@root + &quot;/#{@type}s/&quot; + group
    <span class="kw">end</span>
</pre>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000022"></a>
<b>type2name</b>( type, group )
</td></tr>
</table>
<div class="description">
<p>
Convert a type and a group name into a group name. Pretty simple really.
</p>
</div>
<pre class="source">
<span class="cmt"># File specsaver.rb, line 405</span>
    <span class="kw">def</span> type2name( type, group )
	group
    <span class="kw">end</span>
</pre>

</body>
# Change User Description Committed
#1 3095 Tony Smith First batch of documentation for specsaver.rb