forked from ndbroadbent/dotfiles
-
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.
Added whenever schedule.rb for automatic git repo updates, and keepin…
…g system in sync
- Loading branch information
1 parent
b4d304c
commit 25e83aa
Showing
3 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source :rubygems | ||
|
||
gem "rake" | ||
gem "whenever" |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
activesupport (3.1.3) | ||
multi_json (~> 1.0) | ||
chronic (0.6.6) | ||
multi_json (1.0.4) | ||
rake (0.9.2.2) | ||
whenever (0.7.0) | ||
activesupport (>= 2.3.4) | ||
chronic (~> 0.6.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
rake | ||
whenever |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Use this file to easily define all of your cron jobs. | ||
# Learn more: http://github.com/javan/whenever | ||
|
||
every 10.minutes do | ||
# Fetch all remotes for indexed git repos, and fast-forward if possible | ||
command "git_index --rebuild && git_index --update-all" | ||
# Update dotfiles (set up new symlinks, update generated bashrc, git config, etc.) | ||
command "cd $DOTFILES_PATH && OVERWRITE_ALL=true rake install" | ||
end | ||
|
||
# Update Travis CI build statuses for indexed git repos | ||
every 2.minutes do | ||
command "git_index --rebuild && NOCD=true git_index --batch-cmd git_update_travis_status" | ||
end |