use Moose::Role;
use MooseX::Types::Path::Class;
use File::Path qw(make_path);
+use namespace::autoclean;
with 'MooseX::Daemonize::WithPidFile',
'MooseX::Getopt';
use MooseX::Getopt; # to load the NoGetopt metaclass
use Moose::Role;
-
use POSIX ();
+use namespace::autoclean;
has is_daemon => (
# NOTE:
use Moose;
use Moose::Util::TypeConstraints;
+use namespace::autoclean;
coerce 'MooseX::Daemonize::Pid'
=> from 'Int'
use MooseX::Types::Path::Class;
use MooseX::Getopt::OptionTypeMap;
+use namespace::autoclean;
# NOTE:
# set up some basic coercions
use MooseX::Getopt; # to load the Getopt metaclass
use Moose::Role;
+use namespace::autoclean;
use MooseX::Daemonize::Pid::File;
package Test::MooseX::Daemonize;
# BEGIN CARGO CULTING
-use Sub::Exporter;
-use Test::Builder;
-
-
-{
- my @exports = qw[
- daemonize_ok
- check_test_output
- ];
+use Sub::Exporter::ForMethods 'method_installer';
+use Sub::Exporter -setup => {
+ exports => [ qw(daemonize_ok check_test_output) ],
+ groups => { default => [ qw(daemonize_ok check_test_output) ] },
+ installer => method_installer,
+};
- Sub::Exporter::setup_exporter(
- {
- exports => \@exports,
- groups => { default => \@exports }
- }
- );
-}
+use Test::Builder;
our $Test = Test::Builder->new;
--- /dev/null
+use strict;
+use warnings FATAL => 'all';
+
+use Test::More;
+use Test::CleanNamespaces;
+
+all_namespaces_clean();
+
+done_testing;