Files
Mozilla/mozilla/tools/release/Bootstrap/Step.pm
rhelmer%mozilla.com c9de3e61f0 first stab at release automation framework. r=preed r=tfullhart b=352230
git-svn-id: svn://10.0.0.236/trunk@212894 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 23:21:26 +00:00

36 lines
649 B
Perl

#
# Base class for all Steps.
#
package Bootstrap::Step;
use MozBuild::Util;
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $this = {};
bless($this, $class);
return $this;
}
sub Shell {
my $this = shift;
my %args = @_;
my $cmd = $args{'cmd'};
my $rv = Util::MozUtil::RunShellCommand('command' => "$cmd");
my $exitValue = $rv->{'exitValue'};
if ($exitValue != 0) {
die("shell call returned bad exit code: $exitValue");
}
print "output: $rv->{'output'}";
}
sub Log {
my $this = shift;
my %args = @_;
my $msg = $args{'msg'};
print "log: $msg\n";
}
1;