Commit 8ec570c25304adec6b74ea13b8beefbd9a1f62b8:
    add listen tasks

Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
Rakefile                                                     | ++++++++++++ 
------------------------------------------------------------
12 changes: 12 additions, 0 deletions.
------------------------------------------------------------


diff --git a/Rakefile b/Rakefile
index b8931c0..9d68494 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,6 +5,18 @@ RSpec::Core::RakeTask.new(:spec)
 task :default => :spec
 task :spec => :work
 
+task :server do
+  ENV['RACK_ENV']='development'
+  require 'wunderbar/listen'
+end
+
+namespace :server do
+  task :test do
+    ENV['RACK_ENV']='test'
+    require 'wunderbar/listen'
+  end
+end
+
 file 'test/work' do
   mkdir_p 'test/work'
 end

Reply via email to