quirkey / vegas

Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.
http://code.quirkey.com/vegas
MIT License
183 stars 24 forks source link

Error when killing process #12

Closed theunraveler closed 12 years ago

theunraveler commented 12 years ago

I get the following error when issuing my-command -K:

[2012-01-22 22:04:36 -0600] pid not found at /Users/Jake/.vegas/taskwarrior_web/taskwarrior_web.pid : undefined local variable or method `kill_command' for #<Vegas::Runner:0x000001009e0d30>

I'm guessing it has to do with lib/vegas/runner.rb:224, which should probably be something like the following:

kill_commands.each { |command| Process.kill command, pid.to_i }

Correct?

theunraveler commented 12 years ago

Perfect!