Skip to content

Instantly share code, notes, and snippets.

@coderanger
Created May 27, 2012 23:58
Show Gist options
  • Save coderanger/2816452 to your computer and use it in GitHub Desktop.
Save coderanger/2816452 to your computer and use it in GitHub Desktop.
Invoke Librarian from Rake automatically
desc "Run librarian"
task :librarian do
puts "** Syncing with Cheffile"
system("librarian-chef install")
end
# Extend the existing task to also call librarian
task :update do
Rake::Task[:librarian].invoke
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment