lib/doozer/app.rb in doozer-0.2.6 vs lib/doozer/app.rb in doozer-0.3.0

- old
+ new

@@ -13,11 +13,11 @@ load_files # attach the file watcher for the mvc/lib/etc in development mode load_watcher if Doozer::Configs.rack_env != :deployment - printf "Doozer racked up...\n" + puts "=> Doozer racked up" end # This method is called along the rackup chain and maps the request path to the route, controller, and view for the format type. def call(env) # p env.inspect @@ -119,11 +119,11 @@ # Load all application files for app/helpers/*, app/views/layouts/*, app/views/* and app/controllers/* def load_files # load models load_models - printf "Caching files...\n" + puts "=> Caching files" @@controllers = {} @@layouts={} @@views={} @@errors={} @@ -221,11 +221,11 @@ require File.join(app_path, 'config/routes') end # Load all application models in app/models def load_models - printf "Loading models...\n" + puts "=> Loading models" Dir.glob(File.join(app_path,'app/models/*.rb')).each { | model | require model } end @@ -233,10 +233,10 @@ # # This allows you to edit files without restarting the app server to pickup new changes. def load_watcher require 'doozer/watcher' - printf "All along the watchtower...\n" + puts "=> Watching files for changes" watcher = FileSystemWatcher.new() # watcher.addDirectory(File.join(File.dirname(__FILE__),'../doozer/'), "*.rb") watcher.addDirectory( app_path + '/app/', "**/*") watcher.addDirectory( app_path + '/app', "**/**/*") \ No newline at end of file