Added app name with :: support for PAR
[catagits/Catalyst-Runtime.git] / lib / Module / Install / Catalyst.pm
index ff46f44..a59893c 100644 (file)
@@ -208,6 +208,7 @@ sub _catalyst_par {
     die "Please install Module::ScanDeps\n" if $@;
 
     my $root = $FindBin::Bin;
+    $class_name = s/-/::/g;
     my $path = File::Spec->catfile( 'blib', 'lib', split( '::', $class_name ) );
     $path .= '.pm';
     unless ( -f $path ) {