Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File touched condition #86

Merged
merged 4 commits into from
Sep 18, 2012
Merged

Conversation

cyrilpic
Copy link
Contributor

@cyrilpic cyrilpic commented Feb 7, 2012

I wrote a simple new condition to test whether a file was modified since last check. I thought it might be useful to share as it enables to trigger a restart directly from a file editor without having to open a terminal. Usage pretty straight forward :

on.condition(:file_touched) do |c|
  c.path = 'tmp/restart.txt'
end

@rafamvc
Copy link

rafamvc commented Mar 23, 2012

+1 this is awesome, live saver.

@dukejones
Copy link

very nice -- i was hacking on a broken version of this feature. this is much better.

@axsuul
Copy link

axsuul commented Jul 16, 2012

+1 on this. I currently am using this myself and would be nice to have this as a feature.

eric added a commit that referenced this pull request Sep 18, 2012
@eric eric merged commit 5779a10 into mojombo:master Sep 18, 2012
@FiXato
Copy link

FiXato commented Oct 2, 2012

The file_touched.rb file isn't included yet in the gemspec, thus generating:

Uncaught exception
cannot load such file -- god/conditions/file_touched

eric added a commit that referenced this pull request Oct 2, 2012
@eric
Copy link
Collaborator

eric commented Oct 2, 2012

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants