name 'MooseX-Runnable';
all_from 'lib/MooseX/Runnable.pm';
-build_requires 'Catalyst::Runtime';
-build_requires 'Test::WWW::Mechanize::Catalyst';
+requires 'Moose';
+requires 'MooseX::Getopt'; # not really
+requires 'MooseX::Types' => 0.11;
+requires 'MooseX::Types::Path::Class';
+requires 'namespace::autoclean';
+
build_requires 'Test::More';
build_requires 'ok';
sub run {
my $name = shift;
say "Hello, $name.";
- return 0;
+ return 0; # success
}
Then you can run this class as an application with the included
my @bad_attributes = map { $_->name } grep {
$_->is_required && $_->has_default || $_->has_builder
- } $class->compute_all_applicable_attributes;
+ } $class->get_all_attributes;
confess
'By default, MooseX::Runnable calls the constructor with no'.
};
1;
+
+__END__
+
+=head1 NAME
+
+MooseX::Runnable::Invocation::Scheme::MooseX::Getopt - run MX::Getopt classes
+
+=head1 DESCRIPTION
+
+This role will be used by C<MooseX::Runnable::Invocation> to create an
+instance of the class to be run with C<MooseX::Getopt>. Any args not
+consumed by MX::Getopt will be passed to the class's run method.
+
+(See the test C<t/basic-mx-getopt.t> for an example.)
+