3 =head1 NAME $RCSfile: Vobs.pm,v $
5 Object oriented interface to Clearcase VOBs
13 Andrew DeFaria <Andrew@ClearSCM.com>
21 Thu Dec 29 12:07:59 PST 2005
25 $Date: 2011/11/16 19:46:13 $
31 Provides access to information about all Clearcase VOBs.
34 my $vobs = new Clearcase::Vobs;
36 display "There are " . $vobs->vobs . " vobs to process";
38 # Iterrate through the list of vobs
39 foreach ($vobs->vobs) {
40 my $vob = new Clearcase::Vob $_;
45 display "Umounting all vobs";
49 display "Mounting all vobs";
55 This module implements a Clearcase vobs object to deal with the lists
56 of vobs in the current region.
60 The following routines are exported:
64 package Clearcase::Vobs;
82 Construct a new Clearcase Vobs object.
86 =for html <blockquote>
94 =for html </blockquote>
98 =for html <blockquote>
102 =item Clearcase VOBs object
106 =for html </blockquote>
110 my ($status, @output) = $Clearcase::CC->execute ("lsvob -short");
114 # Strip $VOBTAG_PREFIX
116 if ($ARCHITECTURE eq 'windows' or $ARCHITECTURE eq 'cygwin') {
119 s/$Clearcase::VOBTAG_PREFIX//;
135 Return a list of VOB tags in an array context or the number of vobs in
140 =for html <blockquote>
152 =for html </blockquote>
156 =for html <blockquote>
162 =item List of VOBs or number of VOBs
164 Array of VOB tags in an array context or the number of vobs in a scalar context.
170 =for html </blockquote>
175 my @returnVobs = sort @{$self->{vobs}};
179 return scalar @{$self->{vobs}};
194 =for html <blockquote>
206 =for html </blockquote>
210 =for html <blockquote>
218 Status from cleartool
228 =for html </blockquote>
232 my ($status, @output) = $Clearcase::CC->execute ("mount -all");
248 =for html <blockquote>
260 =for html </blockquote>
264 =for html <blockquote>
272 Status from cleartool
282 =for html </blockquote>
286 my ($status, @output) = $Clearcase::CC->execute ("umount -all");
297 =head3 ClearSCM Perl Modules
299 =for html <p><a href="/php/scm_man.php?file=lib/Clearcase.pm">Clearcase</a></p>
301 =for html <p><a href="/php/scm_man.php?file=lib/Display.pm">Display</a></p>
303 =for html <p><a href="/php/scm_man.php?file=lib/OSDep.pm">OSdep</a></p>
305 =head2 BUGS AND LIMITATIONS
307 There are no known bugs in this module
309 Please report problems to Andrew DeFaria <Andrew@ClearSCM.com>.
311 =head2 LICENSE AND COPYRIGHT
313 Copyright (c) 2007, ClearSCM, Inc. All rights reserved.