[Bps-public-commit] Shipwright branch, master, updated. 949dc3fa6694b76ea921a0155a10ae7b232aa2d8
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Aug 5 02:47:34 EDT 2009
The branch, master has been updated
via 949dc3fa6694b76ea921a0155a10ae7b232aa2d8 (commit)
from 6587719a9724bb25a06b4c9cd416e3571ca41145 (commit)
Summary of changes:
lib/Shipwright.pm | 4 ++--
lib/Shipwright/Script.pm | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 949dc3fa6694b76ea921a0155a10ae7b232aa2d8
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Aug 5 14:47:26 2009 +0800
tiny tweak
diff --git a/lib/Shipwright.pm b/lib/Shipwright.pm
index b0f5939..187305a 100644
--- a/lib/Shipwright.pm
+++ b/lib/Shipwright.pm
@@ -10,8 +10,6 @@ __PACKAGE__->mk_accessors(qw/backend source build log_level log_file/);
use Shipwright::Logger;
use Shipwright::Util;
-use Shipwright::Backend;
-use Shipwright::Source;
use File::Temp qw/tempfile/;
use File::Spec::Functions qw/catfile tmpdir/;
@@ -39,10 +37,12 @@ sub new {
Shipwright::Logger->new($self);
if ( $args{repository} ) {
+ require Shipwright::Backend;
$self->backend( Shipwright::Backend->new(%args) );
}
if ( $args{source} ) {
+ require Shipwright::Source;
$self->source( Shipwright::Source->new(%args) );
}
diff --git a/lib/Shipwright/Script.pm b/lib/Shipwright/Script.pm
index 118bdf8..e677fb2 100644
--- a/lib/Shipwright/Script.pm
+++ b/lib/Shipwright/Script.pm
@@ -55,6 +55,7 @@ sub prepare {
$cmd->repository( $ENV{SHIPWRIGHT_REPOSITORY} )
if !$cmd->repository && $ENV{SHIPWRIGHT_REPOSITORY};
if ( $cmd->repository ) {
+ require Shipwright::Backend;
my $backend =
Shipwright::Backend->new( repository => $cmd->repository );
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list