whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [47/50] Commit 8ec570c: add listen tasks
Date Fri, 22 Jan 2016 02:40:58 GMT
Commit 8ec570c25304adec6b74ea13b8beefbd9a1f62b8:
    add listen tasks


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
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

Mime
View raw message