Title: [673] trunk/rails-integration/plugins/goldspike-snapshot: Run the generator on plugin installation, because the templates are required
- Revision
- 673
- Author
- tantalon
- Date
- 2007-07-21 00:44:34 -0400 (Sat, 21 Jul 2007)
Log Message
Run the generator on plugin installation, because the templates are required
Have the generator create WEB-INF
Modified Paths
Diff
Modified: trunk/rails-integration/plugins/goldspike-snapshot/generators/goldspike/goldspike_generator.rb (672 => 673)
--- trunk/rails-integration/plugins/goldspike-snapshot/generators/goldspike/goldspike_generator.rb 2007-07-20 13:47:51 UTC (rev 672)
+++ trunk/rails-integration/plugins/goldspike-snapshot/generators/goldspike/goldspike_generator.rb 2007-07-21 04:44:34 UTC (rev 673)
@@ -7,8 +7,8 @@
def manifest
record do |m|
m.directory 'config'
- m.directory File.join('config', 'war_files')
m.template 'war.rb', File.join('config', 'war.rb')
+ m.directory 'WEB-INF'
m.template 'web.xml.erb', File.join('WEB-INF', 'web.xml.erb')
end
end
Modified: trunk/rails-integration/plugins/goldspike-snapshot/install.rb (672 => 673)
--- trunk/rails-integration/plugins/goldspike-snapshot/install.rb 2007-07-20 13:47:51 UTC (rev 672)
+++ trunk/rails-integration/plugins/goldspike-snapshot/install.rb 2007-07-21 04:44:34 UTC (rev 673)
@@ -1 +1,4 @@
-# Install hook code here
+# Install the templates
+require 'rails_generator'
+options = { :collision => :skip }
+Rails::Generator::Base.instance('goldspike', [], options).command('create').invoke!
\ No newline at end of file
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel