aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/actions.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-23 14:30:49 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-23 14:30:49 +0200
commitedd07b5a7a37783f398a156b2eb99b5b2733a0ae (patch)
treec3726e647c406d43a10109c1bb584aecdb88c2d9 /railties/lib/generators/actions.rb
parent178044dbd2bd3ed44148e9b6d6584669aa4b2f93 (diff)
downloadrails-edd07b5a7a37783f398a156b2eb99b5b2733a0ae.tar.gz
rails-edd07b5a7a37783f398a156b2eb99b5b2733a0ae.tar.bz2
rails-edd07b5a7a37783f398a156b2eb99b5b2733a0ae.zip
Updated vendored thor to 0.11.3.
Diffstat (limited to 'railties/lib/generators/actions.rb')
-rw-r--r--railties/lib/generators/actions.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/railties/lib/generators/actions.rb b/railties/lib/generators/actions.rb
index 795d420229..55ef212abb 100644
--- a/railties/lib/generators/actions.rb
+++ b/railties/lib/generators/actions.rb
@@ -4,28 +4,6 @@ module Rails
module Generators
module Actions
- # Loads an external file and execute it in the instance binding.
- #
- # ==== Parameters
- # path<String>:: The path to the file to execute. Can be a web address or
- # a relative path from the source root.
- #
- # ==== Examples
- #
- # apply "http://gist.github.com/103208"
- #
- # apply "recipes/jquery.rb"
- #
- def apply(path, options={})
- verbose = options.fetch(:verbose, true)
- path = find_in_source_paths(path) unless path =~ /^http\:\/\//
-
- log :apply, path, verbose
- shell.padding += 1 if verbose
- instance_eval(open(path).read)
- shell.padding -= 1 if verbose
- end
-
# Install a plugin. You must provide either a Subversion url or Git url.
# For a Git-hosted plugin, you can specify if it should be added as a submodule instead of cloned.
#