epp callback for sending messages to Rabbit MQ


On 28/07/2014 14:11, benoitmangili wrote:
>
> In src/perl/lib/wtsi_clarity/mq/client.pm:
>
> > +has 'port'      => (
> > +  isa             => 'Int',
> > +  is              => 'ro',
> > +  required        => 0,
> > +  lazy_build      => 1,
> > +);
> > +sub _build_port {
> > +  my $self = shift;
> > +  return $self->_mq_config->{'port'} || $PORT;
> > +}
> > +
> > +foreach my $attr ( qw/password username vhost exchange routing_key/) {
> > +
> > +  has $attr => (isa => 'Str', is => 'ro', required => 0, lazy_build => 1,);
> > +    my $build_method = '_build_' . $attr;
> > +    ##no critic (TestingAndDebugging::ProhibitNoStrict TestingAndDebugging::ProhibitNoWarnings)
>
> don't the critic need to be reactivated after ?
>

Deactivation is active only till the end of the scope. Marina



-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.