Bio-MUST-Drivers

 view release on metacpan or  search on metacpan

lib/Bio/MUST/Provision/CdHit.pm  view on Meta::CPAN

package Bio::MUST::Provision::CdHit;
# ABSTRACT: Internal class for app provisioning system
$Bio::MUST::Provision::CdHit::VERSION = '0.252830';
# AUTOGENERATED CODE! DO NOT MODIFY THIS FILE!

use Modern::Perl '2011';
use Carp;

use parent qw(App::Provision::Tiny);


sub deps { return qw(brew) }

sub condition {
    my $self = shift;

    my $condition = qx{which cd-hit} =~ m/cd-hit$/xms;
    carp '[BMD] Note: CD-HIT executable not found; I can try brewing it.'
        unless $condition;

    return $condition ? 1 : 0;
}

sub meet {
    my $self = shift;

    return $self->recipe(
        ['brew tap brewsci/bio'],
        ['brew install cd-hit'],
    );
}

1;

__END__

=pod

=head1 NAME

Bio::MUST::Provision::CdHit - Internal class for app provisioning system

=head1 VERSION

version 0.252830

=head1 AUTHOR

Denis BAURAIN <denis.baurain@uliege.be>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by University of Liege / Unit of Eukaryotic Phylogenomics / Denis BAURAIN.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut



( run in 2.486 seconds using v1.01-cache-2.11-cpan-437f7b0c052 )