Changeset 2261
- Timestamp:
- Jul 17, 2012, 7:04:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/locker-dev/locker/deploy/bin/rails
r2260 r2261 43 43 my $appdir = `basename $cwd`; 44 44 chomp $appdir; 45 my $appclass = ucfirst $appdir; 45 46 open APPLICATION_RB, "config/application.rb"; 47 my $appclass; 48 while(<APPLICATION_RB>) { 49 if (/module (\w+)\n/) { 50 $appclass = $1; 51 last; 52 } 53 } 54 close APPLICATION_RB; 55 if (!$appclass) { 56 open FAILED, ">.failed"; 57 close FAILED; 58 die "Couldn't find application class name - plase email scripts\@mit.edu with the names of your locker and the application you tried to create. Sorry!"; 59 } 46 60 47 61 open PUBLIC_HTACCESS, ">public/.htaccess";
Note: See TracChangeset
for help on using the changeset viewer.