aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/runner.rb
Commit message (Collapse)AuthorAgeFilesLines
* make 'rails runner' show usage when run without any optionsVijay Dev2011-06-101-0/+4
|
* Use all in place of find(:all)Vijay Dev2011-05-101-1/+1
|
* Always flush logger at exitJason Rudolph2011-05-061-14/+8
| | | | | | | | | | | | | | Prior to this change, running code via script/runner would demonstrate different logging behavior than running the same code via a rake task. In production mode the script/runner approach would always flush the logger, but the rake-based approach would not automatically flush the logger. This discrepancy violates the principle of least surprise, and it could lead to the loss of important production logging data. This change removes special-case code in the "runner" command, and replaces it with a general solution to ensure that the logger gets flushed at exit. This solution works for "runner", "console", "server", rake tasks, and any other process that loads the Rails environment.
* Send 'rails runner' help message to stdout instead of stderr.rohit2010-09-191-1/+1
| | | | | | [#5661 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix output of 'rails runner --help' [#4249 state:open]rohit2010-09-181-1/+1
|
* Config is deprecated on 1.8.8 and 1.9.3 use RbConfigSantiago Pastorino2010-08-231-1/+1
|
* Avoid calls to Rails::Application since this is not the official API.José Valim2010-07-011-1/+1
| | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
* Rails Runner now sets $0 and $PROGRAM_NAME to name of file being run [#2244 ↵rohit2010-06-221-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-291-1/+2
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved]Anil Wadghule2010-04-261-1/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix regexp typoJeremy Kemper2010-04-131-1/+1
|
* Make RUBY_PLATFORM windows regex consistent [#4345 state:resolved]Anil Wadghule2010-04-121-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* rails runner loads environment after parsing command-line optionsJeremy Kemper2010-02-091-0/+2
|
* Rename usage path to command to just the command nameDavid Heinemeier Hansson2010-02-021-1/+1
|
* Get everyone running on Rails.env and fix the broken environment settings ↵David Heinemeier Hansson2010-01-111-1/+0
| | | | for script/console and script/dbconsole
* script/runner should require environmentJoshua Peek2009-10-161-2/+0
|
* Use Rails.initialize! where we just want to run the initializers and aren't ↵Joshua Peek2009-10-161-1/+1
| | | | concerned about the config
* Have config/application.rb contain the application definition and require ↵Carl Lerche2009-10-151-1/+1
| | | | that file instead of config/boot.rb or config/environment.rb in script/*.
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+54