Permalink
Browse files

'standalone' was moved to Schenker::Options

  • Loading branch information...
1 parent bb0b92b commit ebcbe0e746a82066fd93290f7cf4039e95aa41ae @spiritloose committed Aug 4, 2009
Showing with 5 additions and 5 deletions.
  1. +0 −4 lib/Schenker.pm
  2. +5 −1 lib/Schenker/Options.pm
View
@@ -416,10 +416,6 @@ sub dispatch {
}
}
-sub standalone {
- any { options->server eq $_ } qw(ServerSimple POE AnyEvent);
-}
-
sub install_builtin_middlewares {
configure 'development' => sub {
Use 'HTTP::Engine::Middleware::AccessLog' => {
View
@@ -8,7 +8,7 @@ use Getopt::Long qw(:config bundling no_ignore_case);
our @EXPORT = qw(
configure options set enable disable
- development test production
+ development test production standalone
);
my $instance;
@@ -38,6 +38,10 @@ sub test { options->environment eq 'test' }
sub production { options->environment eq 'production' }
+sub standalone {
+ any { options->server eq $_ } qw(ServerSimple POE AnyEvent);
+}
+
sub configure {
my $code = pop or croak 'code required';
croak 'code must be coderef' if ref $code ne 'CODE';

0 comments on commit ebcbe0e

Please sign in to comment.