rubyist / guard-rake

guard-rake runs a rake task when files change
MIT License
94 stars 32 forks source link

Load Rakefile only once. #27

Closed jarmo closed 11 years ago

jarmo commented 11 years ago

Currently Rakefile is loaded more than one time when multiple rake guards are specified in the Guardfile. For example:

# Guardfile

guard "rake", :task => :foo do
  watch("foo")
end

guard "rake", :task => :bar do
  watch("bar")
end

Will run :foo and :bar tasks twice each time. This pull request fixes that.

rubyist commented 11 years ago

Added in 288d06fc4fa6db4c9a2002f8958ac928ba9793e3

jarmo commented 11 years ago

Thanks!