lib/xmvc/generators/app.rb in xmvc-0.1.4 vs lib/xmvc/generators/app.rb in xmvc-0.1.5
- old
+ new
@@ -18,11 +18,11 @@
end
def create_app
empty_directory("app")
inside("app", {}) do
- copy_file("App.js", "#{destination_root}/App.js")
+ #copy_file("App.js", "#{destination_root}/App.js")
directory("models", "models")
directory("views", "views")
directory("controllers", "controllers")
end
end
@@ -60,11 +60,13 @@
empty_directory("plugins")
end
end
def install_host
- inside("vendor", {}) do
- directory(Xmvc.host::VENDOR_PATH, Xmvc.host.config["name"])
+ inside("vendor", {}) do |dir|
+ host = Xmvc.host.new([], {})
+ host.invoke(:install, [dir])
+ #Xmvc.host.install(dir)
end
end
def install_plugins
inside("vendor/plugins", {}) do