Beam-Runner

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

         "recommends" : {
            "CPAN::Meta" : "2.120900"
         },
         "requires" : {
            "Capture::Tiny" : "0",
            "ExtUtils::MakeMaker" : "0",
            "File::Spec" : "0",
            "IO::Handle" : "0",
            "IPC::Open3" : "0",
            "Mock::MonkeyPatch" : "0",
            "Test::Fatal" : "0",
            "Test::Lib" : "0",
            "Test::More" : "1.001005"
         }
      }
   },
   "provides" : {
      "Beam::Runnable" : {
         "file" : "lib/Beam/Runnable.pm",
         "version" : "0.016"
      },

META.yml  view on Meta::CPAN

abstract: 'Configure, list, document, and execute runnable task objects'
author:
  - 'Doug Bell <preaction@cpan.org>'
build_requires:
  Capture::Tiny: '0'
  ExtUtils::MakeMaker: '0'
  File::Spec: '0'
  IO::Handle: '0'
  IPC::Open3: '0'
  Mock::MonkeyPatch: '0'
  Test::Fatal: '0'
  Test::Lib: '0'
  Test::More: '1.001005'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'

Makefile.PL  view on Meta::CPAN

    "Types::Path::Tiny" => 0,
    "Types::Standard" => 0
  },
  "TEST_REQUIRES" => {
    "Capture::Tiny" => 0,
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,
    "Mock::MonkeyPatch" => 0,
    "Test::Fatal" => 0,
    "Test::Lib" => 0,
    "Test::More" => "1.001005"
  },
  "VERSION" => "0.016",
  "test" => {
    "TESTS" => "t/*.t t/command/*.t t/timeout/*.t"
  }
);


Makefile.PL  view on Meta::CPAN

  "IO::Handle" => 0,
  "IPC::Open3" => 0,
  "List::Util" => "1.33",
  "Mock::MonkeyPatch" => 0,
  "Module::Runtime" => 0,
  "Moo" => 2,
  "Path::Tiny" => "0.072",
  "Pod::Find" => 0,
  "Pod::Simple::SimpleTree" => 0,
  "Term::ANSIColor" => 0,
  "Test::Fatal" => 0,
  "Test::Lib" => 0,
  "Test::More" => "1.001005",
  "Types::Path::Tiny" => 0,
  "Types::Standard" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};

cpanfile  view on Meta::CPAN

requires "Types::Standard" => "0";
requires "perl" => "5.010";

on 'test' => sub {
  requires "Capture::Tiny" => "0";
  requires "ExtUtils::MakeMaker" => "0";
  requires "File::Spec" => "0";
  requires "IO::Handle" => "0";
  requires "IPC::Open3" => "0";
  requires "Mock::MonkeyPatch" => "0";
  requires "Test::Fatal" => "0";
  requires "Test::Lib" => "0";
  requires "Test::More" => "1.001005";
};

on 'test' => sub {
  recommends "CPAN::Meta" => "2.120900";
};

on 'configure' => sub {
  requires "ExtUtils::MakeMaker" => "0";

dist.ini  view on Meta::CPAN

Term::ANSIColor = 0

;-- Common prereqs with minimum version requirements
;Getopt::Long = 2.36 ; First version with GetOptionsFromArray
;Import::Base = 0.012 ; Fixed using subs in imports
;Log::Any = 1.045 ; Returns message and faster

[Prereqs / TestRequires]
Test::More = 1.001005 ; First version that allows args to subtests
Test::Lib = 0
Test::Fatal = 0
Capture::Tiny = 0
Mock::MonkeyPatch = 0
;Test::Deep = 0
;Test::Differences = 0

t/00-report-prereqs.dd  view on Meta::CPAN

                   'recommends' => {
                                     'CPAN::Meta' => '2.120900'
                                   },
                   'requires' => {
                                   'Capture::Tiny' => '0',
                                   'ExtUtils::MakeMaker' => '0',
                                   'File::Spec' => '0',
                                   'IO::Handle' => '0',
                                   'IPC::Open3' => '0',
                                   'Mock::MonkeyPatch' => '0',
                                   'Test::Fatal' => '0',
                                   'Test::Lib' => '0',
                                   'Test::More' => '1.001005'
                                 }
                 }
     };
  $x;
 }

t/allow_users.t  view on Meta::CPAN


=head1 SEE ALSO

L<Beam::Runnable::AllowUsers>

=cut

use strict;
use warnings;
use Test::More;
use Test::Fatal;

my $USER = getpwuid( $> );
{ package
        t::AllowUsers;
    use Moo;
    with 'Beam::Runnable', 'Beam::Runnable::AllowUsers';
    sub run { $t::AllowUsers::RAN++ }
}

subtest 'authorization failure' => sub {

t/command.t  view on Meta::CPAN

=head1 SEE ALSO

L<Beam::Runner::Command>

=cut

use strict;
use warnings;
use Test::More;
use Test::Lib;
use Test::Fatal;
use Beam::Runner::Command;

subtest 'load and run a command' => sub {
    my $exit;
    ok !exception { $exit = Beam::Runner::Command->run( test => 1 ) },
        'test command run successfully';
    is $exit, 0, 'exit code correct';
    no warnings 'once';
    is_deeply $Beam::Runner::Command::test::got_args, [ 1 ], 'args correct';
};

t/command/list.t  view on Meta::CPAN


L<Beam::Runner::Command::list>

=cut

use strict;
use warnings;
use Term::ANSIColor qw( color );
use Test::More;
use Test::Lib;
use Test::Fatal;
use Local::Runnable;
use FindBin ();
use Path::Tiny qw( path );
use Capture::Tiny qw( capture );
use Beam::Runner::Command::list;

local $ENV{BEAM_PATH} = undef;
my $SHARE_DIR = path( $FindBin::Bin, '..', 'share' );
my %COLOR = ( bold => color('bold'), reset => color( 'reset' ) );
my $class = 'Beam::Runner::Command::list';

t/deny_users.t  view on Meta::CPAN


=head1 SEE ALSO

L<Beam::Runnable::DenyUsers>

=cut

use strict;
use warnings;
use Test::More;
use Test::Fatal;

my $USER = getpwuid( $> );
{ package
        t::DenyUsers;
    use Moo;
    with 'Beam::Runnable', 'Beam::Runnable::DenyUsers';
    sub run { $t::DenyUsers::RAN++ }
}

subtest 'authorization success' => sub {

t/single.t  view on Meta::CPAN


=head1 SEE ALSO

L<Beam::Runnable::AllowUsers>

=cut

use strict;
use warnings;
use Test::More;
use Test::Fatal;
use Path::Tiny qw( tempdir );

{ package
        t::Single::Dies;
    use Moo;
    with 'Beam::Runnable', 'Beam::Runnable::Single';
    sub run { die }
}
{ package
        t::Single::Lives;

t/util.t  view on Meta::CPAN


=head1 DESCRIPTION

This file tests the L<Beam::Runner::Util> utility functions

=cut

use strict;
use warnings;
use Test::More;
use Test::Fatal;
use FindBin qw( $Bin );
use Beam::Runner::Util qw( find_containers );

subtest 'find_containers' => sub {

    subtest 'blank does not warn' => sub {
        local $ENV{BEAM_PATH};
        my @warnings;
        local $SIG{__WARN__} = sub { push @warnings, @_ };
        my %containers = find_containers();



( run in 3.592 seconds using v1.01-cache-2.11-cpan-54e63673c56 )