zandu 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zandu.rb +3 -3
- metadata +1 -1
data/lib/zandu.rb
CHANGED
@@ -40,15 +40,15 @@ class ZanduInsertion
|
|
40
40
|
# f.puts "end"
|
41
41
|
# end
|
42
42
|
|
43
|
-
File.new("app/controllers/dbs_controller.rb")
|
44
|
-
|
43
|
+
#File.new("app/controllers/dbs_controller.rb")
|
44
|
+
File.open("app/controllers/dbs_controller.rb","w") do |f|
|
45
45
|
|
46
46
|
srcFile = File.dirname(__FILE__) + "/tamplates/dbs_controller.rb"
|
47
47
|
src = File.open(srcFile)
|
48
48
|
dest = File.open("app/controllers/dbs_controller.rb", "w")
|
49
49
|
IO.copy_stream(src, dest)
|
50
50
|
|
51
|
-
|
51
|
+
end
|
52
52
|
|
53
53
|
File.open( 'config/routes.rb' ) do |io|
|
54
54
|
io.each {
|