Commit Graph

16 Commits

Author SHA1 Message Date
rohit fd53bc85e7 Send 'rails runner' help message to stdout instead of stderr.
[#5661 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-19 16:45:29 -07:00
rohit 76266a8184 Fix output of 'rails runner --help' [#4249 state:open] 2010-09-18 20:49:33 +02:00
Santiago Pastorino bb75c33754 Config is deprecated on 1.8.8 and 1.9.3 use RbConfig 2010-08-23 23:10:36 -03:00
José Valim 53b34e8476 Avoid calls to Rails::Application since this is not the official API.
Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
2010-07-01 18:43:44 +02:00
rohit 40bf76165c Rails Runner now sets $0 and $PROGRAM_NAME to name of file being run [#2244 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-22 15:20:29 +02:00
José Valim 1b816d5024 The rake task :environment now loads config/environment.rb instead of initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks. 2010-04-29 08:39:52 +02:00
Anil Wadghule 53c13f1aca Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-26 11:12:52 -07:00
Jeremy Kemper 4d098327da Fix regexp typo 2010-04-13 12:06:12 -07:00
Anil Wadghule b9b9f9ee15 Make RUBY_PLATFORM windows regex consistent [#4345 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-12 10:56:34 +02:00
Jeremy Kemper 39ebd6eb2b rails runner loads environment after parsing command-line options 2010-02-09 08:40:21 -08:00
David Heinemeier Hansson 9a83bd5006 Rename usage path to command to just the command name 2010-02-02 16:16:26 -08:00
David Heinemeier Hansson 8cb594a2e1 Get everyone running on Rails.env and fix the broken environment settings for script/console and script/dbconsole 2010-01-11 14:01:28 -08:00
Joshua Peek f1640a1653 script/runner should require environment 2009-10-16 19:33:25 -05:00
Joshua Peek d859402696 Use Rails.initialize! where we just want to run the initializers and aren't concerned about the config 2009-10-16 18:58:35 -05:00
Carl Lerche 97296b11e2 Have config/application.rb contain the application definition and require that file instead of config/boot.rb or config/environment.rb in script/*. 2009-10-15 14:54:12 -07:00
Yehuda Katz + Carl Lerche f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00