diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-16 11:17:19 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-16 11:17:19 +0200 |
commit | d6a590a7107eabd9c3ab067c60bef904da62f174 (patch) | |
tree | 31dbb4c37dfa32ec1e1eb49801681aad6e2909be /railties/lib/generators/actions.rb | |
parent | b03034a686df5ed91d790404b27e595165883834 (diff) | |
download | rails-d6a590a7107eabd9c3ab067c60bef904da62f174.tar.gz rails-d6a590a7107eabd9c3ab067c60bef904da62f174.tar.bz2 rails-d6a590a7107eabd9c3ab067c60bef904da62f174.zip |
Modified rake tasks to use new app generator structure and updated Thor version.
Diffstat (limited to 'railties/lib/generators/actions.rb')
-rw-r--r-- | railties/lib/generators/actions.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/railties/lib/generators/actions.rb b/railties/lib/generators/actions.rb index 81db0b7c37..795d420229 100644 --- a/railties/lib/generators/actions.rb +++ b/railties/lib/generators/actions.rb @@ -16,13 +16,14 @@ module Rails # # apply "recipes/jquery.rb" # - def apply(path) - path = find_in_source_paths(path) unless path =~ /^http\:\/\// + def apply(path, options={}) + verbose = options.fetch(:verbose, true) + path = find_in_source_paths(path) unless path =~ /^http\:\/\// - log :apply, path - shell.padding += 1 + log :apply, path, verbose + shell.padding += 1 if verbose instance_eval(open(path).read) - shell.padding -= 1 + shell.padding -= 1 if verbose end # Install a plugin. You must provide either a Subversion url or Git url. |