[Bps-public-commit] r14091 - in sd/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon Jul 14 17:33:19 EDT 2008
Author: sartak
Date: Mon Jul 14 17:33:16 2008
New Revision: 14091
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/Replica/Hiveminder.pm
Log:
r64240 at onn: sartak | 2008-07-14 17:33:11 -0400
Don't do the around new thing, do BUILD instead
Modified: sd/trunk/lib/App/SD/Replica/Hiveminder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/Hiveminder.pm (original)
+++ sd/trunk/lib/App/SD/Replica/Hiveminder.pm Mon Jul 14 17:33:16 2008
@@ -15,17 +15,6 @@
use constant scheme => 'hm';
-# XXX: this should be called from superclass, or better, have individual attributes have their own builders.
-
-around 'new' => sub {
- my ($next, $self, @args) = @_;
- warn "around $self $next";
- my $ret = $self->$next(@args);
- $ret->setup;
- warn "==> $ret";
- return $ret;
-};
-
=head2 setup
@@ -33,8 +22,9 @@
=cut
+# XXX: this should be called from superclass, or better, have individual attributes have their own builders.
-sub setup {
+sub BUILD {
my $self = shift;
require Net::Jifty;
More information about the Bps-public-commit
mailing list