forked from Codaisseur/terminal-notifier-guard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use terminal-notifier binary if detected via which
- Loading branch information
Jamil Bou Kheir
committed
Nov 16, 2013
1 parent
d71141e
commit 0da066c
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
module TerminalNotifier | ||
module Guard | ||
module Failed | ||
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
terminal_notifier_path = `which terminal-notifier` | ||
BIN_PATH = terminal_notifier_path.empty? ? | ||
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
: | ||
terminal_notifier_path | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
module TerminalNotifier | ||
module Guard | ||
module Notify | ||
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-notify.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
terminal_notifier_path = `which terminal-notifier` | ||
BIN_PATH = terminal_notifier_path.empty? ? | ||
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
: | ||
terminal_notifier_path | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
module TerminalNotifier | ||
module Guard | ||
module Pending | ||
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-pending.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
terminal_notifier_path = `which terminal-notifier` | ||
BIN_PATH = terminal_notifier_path.empty? ? | ||
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
: | ||
terminal_notifier_path | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
module TerminalNotifier | ||
module Guard | ||
module Success | ||
BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-success.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
terminal_notifier_path = `which terminal-notifier` | ||
BIN_PATH = terminal_notifier_path.empty? ? | ||
File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__) | ||
: | ||
terminal_notifier_path | ||
end | ||
end | ||
end |