2011-08-30 23:16:15 -04:00
|
|
|
# Add a .lighthouse file into your directory with the URL to the
|
|
|
|
# individual project.
|
|
|
|
#
|
|
|
|
# For example:
|
|
|
|
# https://rails.lighthouseapp.com/projects/8994
|
|
|
|
#
|
|
|
|
# Screencast:
|
|
|
|
# http://screencast.com/t/ZDgwNDUwNT
|
|
|
|
|
|
|
|
function open-lighthouse-ticket() {
|
|
|
|
if [[ ! -f .lighthouse-url ]]; then
|
2010-11-02 11:26:49 +00:00
|
|
|
echo "There is no .lighthouse-url file in the current directory..."
|
2010-06-03 12:03:26 -07:00
|
|
|
return 0;
|
|
|
|
else
|
2011-08-30 23:16:15 -04:00
|
|
|
local lighthouse_url=$(cat .lighthouse-url);
|
2010-06-03 12:03:26 -07:00
|
|
|
echo "Opening ticket #$1";
|
2011-08-30 23:16:15 -04:00
|
|
|
open "${lighthouse_url}/tickets/$1";
|
2010-06-03 12:03:26 -07:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2011-08-30 23:16:15 -04:00
|
|
|
alias olt='open-lighthouse-ticket'
|
|
|
|
|