Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/capistrano/notification-center
Capistrano integration with macOS Notification Center
https://github.com/capistrano/notification-center
capistrano notifications ruby
Last synced: 1 day ago
JSON representation
Capistrano integration with macOS Notification Center
- Host: GitHub
- URL: https://github.com/capistrano/notification-center
- Owner: capistrano
- License: mit
- Created: 2012-09-29T10:02:01.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T17:12:55.000Z (almost 7 years ago)
- Last Synced: 2025-01-16T07:12:20.060Z (8 days ago)
- Topics: capistrano, notifications, ruby
- Language: Ruby
- Homepage:
- Size: 15.6 KB
- Stars: 88
- Watchers: 8
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Capistrano + Notification Center
capistrano-nc integrates Capistrano and OS X Notification Center.
![Screenshot](http://f.cl.ly/items/1k253H0o350m1F0L371j/Screen%20Shot%202012-09-29%20at%2012.57.34%20PM.png)
## Installation
### for Capistrano 3.x
```ruby
# Gemfile
gem 'capistrano-nc', '~> 0.2'
``````ruby
# Capfile
require 'capistrano-nc/nc'
```### for Capistrano 2.x
```ruby
# Gemfile
gem "capistrano-nc", "0.0.2"
``````ruby
# config/deploy.rb
require "capistrano-nc"
```By default it will run the `nc:finished` task after your `deploy` or `deploy:migrations`. If this behavior doesn't suit you, you can hook `nc:finished` to any custom task by editing `deploy.rb`:
```
after `your:task`, `nc:finished`
```Terminal.app is opened when the notification is clicked. To use an alternative terminal set `:nc_terminal` to the bundle identifier e.g. `set :nc_terminal, 'com.googlecode.iterm2'` for iTerm2.
## Contributors
- [Kir Shatrov](https://github.com/kirs/)
## Feel free to pull request!