GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A Rails Plugin to generate Jamal MVC controllers, views and models. Maybe some helpers are following too.
Clone URL: git://github.com/DenDe/jamalbuilder.git
created the installation routine and cleaned up the plugin directories
DenDe (author)
Sat Jul 19 07:03:09 -0700 2008
commit  cd169afbb67e71f304a9bb69ed18d2a3343f2259
tree    e0496b111ca51eaf3223314125abee2ffbc7af1c
parent  def2d7605c237878658c50850980fde81551a02f
...
14
15
16
17
18
19
20
21
22
...
14
15
16
 
 
 
17
18
19
0
@@ -14,9 +14,6 @@ class JamalInitGenerator < Rails::Generator::Base
0
       m.template "app_controller.js", "public/javascripts/jamal/app_controller.js"
0
       m.template "app_view.js", "public/javascripts/jamal/app_view.js"
0
       m.template "app_model.js", "public/javascripts/jamal/app_model.js"
0
-
0
- m.template "jamal_packed.js", "public/javascripts/jamal/jamal_packed.js"
0
- m.template "jquery.js", "public/javascripts/jamal/jquery.js"
0
     end
0
   end
0
 end
...
1
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
0
@@ -1 +1,9 @@
0
 # Install hook code here
0
+puts "Copying files..."
0
+dir = "javascripts"
0
+["jamal_packed", "jquery"].each do |js_file|
0
+ dest_file = File.join(RAILS_ROOT, "public", dir, js_file)
0
+ src_file = File.join(File.dirname(__FILE__) , dir, js_file)
0
+ FileUtils.cp_r(src_file, dest_file)
0
+end
0
+puts "Files copied - Installation complete!"

Comments

    No one has commented yet.