Browse files

Do not hardcode the path to stompserver

  • Loading branch information...
ripienaar committed Mar 17, 2011
1 parent a39ffd4 commit 94ef3ec5c62263361c9ecd002625a50b1699a85f
Showing with 4 additions and 2 deletions.
  1. +4 −2 Rakefile
@@ -154,7 +154,9 @@ end
desc "Start a ruby based stompserver on localhost:6163"
task :stompserver do
- raise "Please install stompserver rubygem that includes /usr/bin/stompserver" unless File.exist?("/usr/bin/stompserver")
+ `which stompserver >/dev/null 2>/dev/null`
+ raise "Please install stompserver rubygem" unless $?.exitstatus == 0
puts "Starting the Ruby Stompserver on localhost:6163 press ^C to terminate"
@@ -163,7 +165,7 @@ task :stompserver do
FileUtils.mkdir_p "logs"
- system("/usr/bin/stompserver --config etc/stompserver.conf")
+ system("stompserver --config etc/stompserver.conf")
puts "Stompserver terminated use rake clean to clean up logs etc"

0 comments on commit 94ef3ec

Please sign in to comment.