Bio-MUST-Drivers

 view release on metacpan or  search on metacpan

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

package Bio::MUST::Provision::Blast;
# ABSTRACT: Internal class for app provisioning system
$Bio::MUST::Provision::Blast::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 blastp} =~ m/blastp$/xms;
    carp '[BMD] Note: NCBI-BLAST+ 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 blast'],
    );
}

1;

__END__

=pod

=head1 NAME

Bio::MUST::Provision::Blast - 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 0.946 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )