This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--type-set=bin=.pdf | |
--nobin | |
--ignore-dir=tmp | |
--ignore-dir=coverage | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instance method in my XML Reader to easily read dates from the XML | |
// Pretty sure I have the date formatting right, per the link from the Apple documentation | |
// http://unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns | |
-(NSDate *)dateWithString:(NSString *)dateString { | |
NSDateFormatter * formatter = [[[NSDateFormatter alloc] init] autorelease]; | |
[formatter setDateFormat:@"yyyy-MM-DD HH:mm:ss ZZ"]; | |
NSLog(@"Converting '%@' to '%@'", dateString, [formatter dateFromString:dateString]); | |
return [formatter dateFromString:dateString]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace(:pb) do | |
desc "Symlink the databse config file from shared drectory to current release directory." | |
task :symlinks do | |
run "ln -nsf #{shared_path}/config/database.yml #{release_path}/config/database.yml" | |
run "ln -nsf #{shared_path}/config/initializers/site_keys.rb #{release_path}/config/initializers/site_keys.rb" | |
end | |
end | |
namespace(:deploy) do | |
desc "Tell Passenger to restart the server" |
NewerOlder