diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-23 14:30:49 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-23 14:30:49 +0200 |
commit | edd07b5a7a37783f398a156b2eb99b5b2733a0ae (patch) | |
tree | c3726e647c406d43a10109c1bb584aecdb88c2d9 /railties/lib/generators/actions.rb | |
parent | 178044dbd2bd3ed44148e9b6d6584669aa4b2f93 (diff) | |
download | rails-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.rb | 22 |
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. # |