https://github.com/corroded/malthael
A test app for committing to harvest
https://github.com/corroded/malthael
Last synced: 6 months ago
JSON representation
A test app for committing to harvest
- Host: GitHub
- URL: https://github.com/corroded/malthael
- Owner: corroded
- Created: 2014-05-30T18:21:44.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-30T19:58:55.000Z (about 12 years ago)
- Last Synced: 2025-01-29T19:14:21.110Z (over 1 year ago)
- Size: 121 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### This is a test app for sending timers to harvest
This is a work in progress. The basic idea is to attach this to a git post-commit hook so
right after you commit, your timer is stopped and updated with your latest commit message.
This in turn starts a new timer so the next time you commit, you automatically stop the
currently running one + add your commit message to it.
#### Setting up the post commit hook
Open up `.git/hooks/post-commit` (you might need to create it) and add these lines:
````
#!/bin/sh
#
# An example hook script that is called after a successful
# commit is made.
#
# To enable this hook, make this file executable.
ruby reap.rb
````
You will also need to set the proper permissions:
`chmod a+x .git/hooks/post-commit`
#### Setting up harvest
`gem install harvested`
Set your credentials in your ENV for now:
````
export harvest_subdomain='harvestsubdomain'
export harvest_email='your@email.com'
export harvest_password='yourpassword'
````
#### PRIORITY TODO:
1. Make this into a gem
2. Re-think auto toggling of timers?