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;
76 my ($class, $host, $region) = @_;
82 Construct a new Clearcase Vobs object.
86 =for html <blockquote>
92 If host is specified then limit the vob list to only those vobs on that host. If
93 host is not specified then all vobs are considered
97 =for html </blockquote>
101 =for html <blockquote>
105 =item Clearcase VOBs object
109 =for html </blockquote>
113 my $cmd = 'lsvob -short';
114 $cmd .= " -host $host" if $host;
115 $cmd .= " -region $region" if $region;
117 my ($status, @output) = $Clearcase::CC->execute ($cmd);
133 Return a list of VOB tags in an array context or the number of vobs in
138 =for html <blockquote>
150 =for html </blockquote>
154 =for html <blockquote>
160 =item List of VOBs or number of VOBs
162 Array of VOB tags in an array context or the number of vobs in a scalar context.
168 =for html </blockquote>
173 my @returnVobs = sort @{$self->{vobs}};
177 return scalar @{$self->{vobs}};
192 =for html <blockquote>
204 =for html </blockquote>
208 =for html <blockquote>
216 Status from cleartool
226 =for html </blockquote>
230 my ($status, @output) = $Clearcase::CC->execute ("mount -all");
246 =for html <blockquote>
258 =for html </blockquote>
262 =for html <blockquote>
270 Status from cleartool
280 =for html </blockquote>
284 my ($status, @output) = $Clearcase::CC->execute ("umount -all");
295 =head3 ClearSCM Perl Modules
297 =for html <p><a href="/php/scm_man.php?file=lib/Clearcase.pm">Clearcase</a></p>
299 =for html <p><a href="/php/scm_man.php?file=lib/Display.pm">Display</a></p>
301 =for html <p><a href="/php/scm_man.php?file=lib/OSDep.pm">OSdep</a></p>
303 =head2 BUGS AND LIMITATIONS
305 There are no known bugs in this module
307 Please report problems to Andrew DeFaria <Andrew@ClearSCM.com>.
309 =head2 LICENSE AND COPYRIGHT
311 Copyright (c) 2007, ClearSCM, Inc. All rights reserved.