diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-27 15:20:35 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-27 21:30:00 +0200 |
commit | ff44e5055cd92ee9c49c315cfffa3b0eb4feb844 (patch) | |
tree | a17923196f9c3654f1086b5e62ab4a999ed11255 | |
parent | 1a15dd4de577d77f37bc39a1ca59f871aa9a395b (diff) | |
download | rails-ff44e5055cd92ee9c49c315cfffa3b0eb4feb844.tar.gz rails-ff44e5055cd92ee9c49c315cfffa3b0eb4feb844.tar.bz2 rails-ff44e5055cd92ee9c49c315cfffa3b0eb4feb844.zip |
Output invocations.
-rw-r--r-- | railties/lib/generators/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/generators/base.rb b/railties/lib/generators/base.rb index 574abfe60b..b9ec9eea62 100644 --- a/railties/lib/generators/base.rb +++ b/railties/lib/generators/base.rb @@ -113,6 +113,7 @@ module Rails # def self.hook_for(*names) default_options = names.extract_options! + verbose = default_options.key?(:verbose) ? default_options[:verbose] : :blue names.each do |name| options = default_options.dup @@ -130,6 +131,7 @@ module Rails self.class.base_name, self.class.generator_name) if klass + say_status :invoke, options[#{name.inspect}], #{verbose.inspect} invoke klass else say "Could not find and invoke '\#{options[#{name.inspect}]}'." @@ -164,6 +166,7 @@ module Rails # def self.invoke_if(*names) default_options = names.extract_options! + verbose = default_options.key?(:verbose) ? default_options[:verbose] : :blue names.each do |name| conditional_class_option name, default_options.dup @@ -176,6 +179,7 @@ module Rails self.class.base_name, self.class.generator_name) if klass + say_status :invoke, #{name.inspect}, #{verbose.inspect} invoke klass else say "Could not find and invoke '#{name}'." |