Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Nofity on job done #6

Open
vadviktor opened this issue Jul 4, 2013 · 4 comments
Open

Nofity on job done #6

vadviktor opened this issue Jul 4, 2013 · 4 comments

Comments

@vadviktor
Copy link

I am not a big guard guru (yet) but is there a way to configure this gem to notify me if there was a sync and it is done. Best if there were some fine graining the notification on success and failure.

I am migrating myself from a heavy IDE to Sublime Text and I am using guard to sync source code. Every time I chage something, guard picks up the changes, transfers it to the remote end and when it's done I want to be notified that I can refresh my browser and see the results.

(I see this option is mentioned on the guard-ftpsync gem.)

Can anyone help me on this?

@pmcjury
Copy link
Owner

pmcjury commented Jul 4, 2013

You jus have to configure your notifiers like growl for macosx, etc. the guard github page has information on notifications just put te correct one for your system ( win, Ubuntu , OSx, etc ) into your Gemfile. https://github.com/guard/guard#notification

Sent from my iPhone

On Jul 4, 2013, at 4:23 AM, Vad Viktor [email protected] wrote:

I am not a big guard guru (yet) but is there a way to configure this gem to notify me if there was a sync and it is done. Best if there were some fine graining the notification on success and failure.

I am migrating myself from a heavy IDE to Sublime Text and I am using guard to sync source code. Every time I chage something, guard picks up the changes, transfers it to the remote end and when it's done I want to be notified that I can refresh my browser and see the results.

Can anyone help me on this?


Reply to this email directly or view it on GitHub.

@vadviktor
Copy link
Author

I use Ubuntu and I do have libnotify in my gemfile and some startup notifications do come up. Still when a file change was picked up and rsynced I do not get a GUI notification and I really wish to have some control over how those notifications look like (icon, title, etc).

I looked at the code of this gem and I got the feeling that I might need to fork and extend this config functionality on it. Am I right?

@vadviktor
Copy link
Author

I made a quick hack on this baby here https://github.com/vadviktor/guard-remote-sync/compare/sync_notify. How about this idea for a request pull after of course cleaned up as you think it's acceptable?

@pmcjury
Copy link
Owner

pmcjury commented Jul 12, 2013

Yeah just do a pull request and we'll work form there. Looks easy enough though. I was confused before about notfiy on change. I thought you meant starting and stopping.

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

No branches or pull requests

2 participants