diff options
author | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-27 13:44:10 +0200 |
---|---|---|
committer | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-27 13:44:10 +0200 |
commit | e38d3752c377b400aea1d0b854bebf3734664cd7 (patch) | |
tree | 4ddb0468d64407dc5505c5aaf19c04ae980cae13 /railties/lib/rails/generators | |
parent | 5f00592466bd91107ecdfd055140cb2b36e29f50 (diff) | |
download | rails-e38d3752c377b400aea1d0b854bebf3734664cd7.tar.gz rails-e38d3752c377b400aea1d0b854bebf3734664cd7.tar.bz2 rails-e38d3752c377b400aea1d0b854bebf3734664cd7.zip |
Generate script/rails only if --full is given
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb b/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb index 00f90f9498..184fe19c06 100644 --- a/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +++ b/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb @@ -126,6 +126,8 @@ task :default => :test end def script(force = false) + return unless full? + directory "script", :force => force do |content| "#{shebang}\n" + content end |