Browse code

moved from Posix::Span to Process.span, fixing #46

Brandon Mathis authored on 08/09/2011 at 16:54:07
Showing 1 changed files
... ...
@@ -56,8 +56,8 @@ desc "Watch the site and regenerate when it changes"
56 56
 task :watch do
57 57
   raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
58 58
   puts "Starting to watch source with Jekyll and Compass."
59
-  jekyllPid = spawn("jekyll --auto")
60
-  compassPid = spawn("compass watch")
59
+  jekyllPid = Process.spawn("jekyll --auto")
60
+  compassPid = Process.spawn("compass watch")
61 61
 
62 62
   trap("INT") {
63 63
 	Process.kill(9, jekyllPid)
... ...
@@ -72,9 +72,9 @@ desc "preview the site in a web browser"
72 72
 task :preview do
73 73
   raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
74 74
   puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}"
75
-  jekyllPid = spawn("jekyll --auto")
76
-  compassPid = spawn("compass watch")
77
-  rackupPid = spawn("rackup --port #{server_port}")
75
+  jekyllPid = Process.spawn("jekyll --auto")
76
+  compassPid = Process.spawn("compass watch")
77
+  rackupPid = Process.spawn("rackup --port #{server_port}")
78 78
 
79 79
   trap("INT") {
80 80
 	Process.kill(9, jekyllPid)