summaryrefslogtreecommitdiff
path: root/lib/Net/Riak/MapReduce.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-14 17:53:00 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-14 17:54:23 +0200
commitce47f3bb5e8c69a59b678c8ff8956d8a368bcb32 (patch)
treee1542c99df3edd44e9434f244318ff2d871df633 /lib/Net/Riak/MapReduce.pm
parentis_alive moved to client (diff)
downloadnet-riak-ce47f3bb5e8c69a59b678c8ff8956d8a368bcb32.tar.gz
add mx::role::parameterized for replicas, bucket and client
Diffstat (limited to '')
-rw-r--r--lib/Net/Riak/MapReduce.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Net/Riak/MapReduce.pm b/lib/Net/Riak/MapReduce.pm
index a705c58..057f74e 100644
--- a/lib/Net/Riak/MapReduce.pm
+++ b/lib/Net/Riak/MapReduce.pm
@@ -9,11 +9,9 @@ use Scalar::Util;
use Net::Riak::LinkPhase;
use Net::Riak::MapReducePhase;
-has client => (
- is => 'rw',
- isa => 'Net::Riak::Client',
- required => 1,
-);
+with 'Net::Riak::Role::Base' =>
+ {classes => [{name => 'client', required => 0}]};
+
has phases => (
traits => ['Array'],
is => 'rw',