Providing either a growl or a terminal notifier for protection

Currently, I can get either Growl or Terminal Notifier to work with Guard. Whatever I placed in my Gemfile and did not run bundle , and then worked.

I need to have a place other than a Gemfile to choose which one to use. I am working on a project with several developers, and most of them use Growl. I prefer Terminal Notifier.

I do not want to make changes to the Gemfile because it is in version control.

I cannot find a way to move this to Guardfile . Is the next best thing to just do a direct include in the gemfile and separate it where each developer can edit his .extra-gems file or something else? It seems messy.

+4
source share
1 answer

If you do not configure your notifications, the Guard will try to automatically detect as many notification features as possible. You can use the notification method to customize notifications according to your needs. Guard also knows common configurations , which allows you to have your own configuration in your home directory.

Now you can configure your personal notification settings in ~/.guard.rb :

notification :terminal_title

This will turn off automatic detection by turning on only the terminal name notification.

+5
source

Source: https://habr.com/ru/post/1443513/


All Articles