diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-20 17:36:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-20 17:36:23 +0000 |
commit | 2afb8a8cc0e3562d22a5ea31b934e076b5bfe8f6 (patch) | |
tree | 44275a8856952ca2bd46ff59033f41c867f5994d /railties/bin | |
parent | 16287608bb6836924dc210a62b1c7e70a58ea94c (diff) | |
download | rails-2afb8a8cc0e3562d22a5ea31b934e076b5bfe8f6.tar.gz rails-2afb8a8cc0e3562d22a5ea31b934e076b5bfe8f6.tar.bz2 rails-2afb8a8cc0e3562d22a5ea31b934e076b5bfe8f6.zip |
Added script/runner which can be used to run code inside the environment by eval'ing the first parameter
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@939 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/bin')
-rw-r--r-- | railties/bin/runner | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/bin/runner b/railties/bin/runner new file mode 100644 index 0000000000..acb18f0098 --- /dev/null +++ b/railties/bin/runner @@ -0,0 +1,4 @@ +#!/usr/local/bin/ruby + +require File.dirname(__FILE__) + '/../config/environment' +eval(ARGV.first)
\ No newline at end of file |