diff options
author | Ryan Davis <ryand@zenspider.com> | 2010-12-07 17:24:55 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2010-12-07 17:24:55 -0800 |
commit | 9ab5385f6a5f4a0382d8939464362b50bdb462d2 (patch) | |
tree | f4e70c12916d963d42710b7d9f38a7345562ba37 | |
parent | 84fc5a3769f8c7f49ed8602b1913c5757ff1b90d (diff) | |
download | hoe-9ab5385f6a5f4a0382d8939464362b50bdb462d2.tar.gz |
+ Extended sow's Rakefile template to dynamically include installed plugins
[git-p4: depot-paths = "//src/hoe/dev/": change = 6036]
-rw-r--r-- | template/Rakefile.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/template/Rakefile.erb b/template/Rakefile.erb index 0efee56..97d053b 100644 --- a/template/Rakefile.erb +++ b/template/Rakefile.erb @@ -3,7 +3,17 @@ require 'rubygems' require 'hoe' +<%= + found = Gem.find_files("hoe/*.rb").map { |f| File.basename(f, ".rb").to_sym } + extra = found - Hoe.plugins - [:rake] + extra.map { |name| "# Hoe.plugin #{name.inspect}" }.sort.join("\n") +%> + Hoe.spec '<%= project %>' do + # HEY! If you fill these out in ~/.hoe_template/Rakefile.erb then + # you'll never have to touch them again! + # (delete this comment too, of course) + # developer('<%= XIF %>', '<%= XIF %>@example.com') # self.rubyforge_name = '<%= project %>x' # if different than '<%= project %>' |