diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-06-14 17:53:00 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-06-14 17:54:23 +0200 |
| commit | ce47f3bb5e8c69a59b678c8ff8956d8a368bcb32 (patch) | |
| tree | e1542c99df3edd44e9434f244318ff2d871df633 /lib/Net/Riak/MapReduce.pm | |
| parent | is_alive moved to client (diff) | |
| download | net-riak-ce47f3bb5e8c69a59b678c8ff8956d8a368bcb32.tar.gz | |
add mx::role::parameterized for replicas, bucket and client
Diffstat (limited to '')
| -rw-r--r-- | lib/Net/Riak/MapReduce.pm | 8 |
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', |
