CARVIEW |
We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]
Every repository with this icon (

Every repository with this icon (

Fork of defunkt/sake-tasks | |
Description: | Your own personal sake tasks, ripe for sharing. |
Clone URL: |
git://github.com/urubatan/sake-tasks.git
Give this clone URL to anyone.
git clone git://github.com/urubatan/sake-tasks.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Thu Apr 24 19:38:01 -0700 2008 | Added a gitignore [dpetersen] |
![]() |
README.markdown | Tue Aug 19 04:48:30 -0700 2008 | Added tasks for checking syntax on erb, ruby an... [lukemelia] |
![]() |
Rakefile | Mon Aug 18 17:13:58 -0700 2008 | Rakefile with default task to install all sake ... [drnic] |
![]() |
check/ | Tue Aug 19 04:48:30 -0700 2008 | Added tasks for checking syntax on erb, ruby an... [lukemelia] |
![]() |
git/ | Tue Aug 19 06:35:04 -0700 2008 | added git/svn tasks [urubatan] |
![]() |
mysql/ | Mon Aug 18 17:08:39 -0700 2008 | refactored Sakefile from lukemelia into individ... [drnic] |
![]() |
ssh/ | Mon Aug 18 17:08:39 -0700 2008 | refactored Sakefile from lukemelia into individ... [drnic] |
Installation
First, clone the sake-tasks repo:
git clone git://github.com/drnic/sake-tasks.git
Or replace ‘drnic’ with your github username if you have forked the sake-tasks repo.
Then install the sake tasks (this step is repeatable, even if one or more tasks are already exist; that is, any pre-existing tasks with the same name will be overridden)
rake install
To see your list of resulting tasks:
sake -T
What are Sake tasks/recipes?
It’s the marvelous Sake, system-wide Rake.
https://errtheblog.com/posts/60-sake-bomb
Current tasks
The following sake tasks are installed:
sake check:erb # Find all .erb or .rhtml files in the current directory tree and report any syntax errors sake check:ruby # Find all .rb files in the current directory tree and report any syntax errors sake check:yaml # Find all .yml files in the current directory tree and report any syntax errors sake git:analyze:commits:flogfrequent # Flog the most commonly revised files in the git history sake git:close # Delete the current branch and switch back to master sake git:manpages:install # Install man pages for current git version sake git:open # Create a new branch off master sake git:pull # Pull new commits from the repository sake git:push # Push all changes to the repository sake git:status # Show the current status of the checkout sake git:topic # Create a new topic branch sake git:update # Pull new commits from the repository sake mysql:dump # Dump the database to FILE (depends on mysql:params) sake mysql:load # Load the database from FILE (depends on mysql:params) sake ssh:installpublickey # Install your public key on a remote server.
Adding new recipes/tasks
The installer rake task rake install
works by assuming that each .sake
file contains one sake task. This allows it to uninstall the task from sake first, and then re-install it (sake barfs if you attempt to reinstall an existing task).
So, to create a task foo:bar:baz
, you’ll need to add a folder foo/bar
and create a file baz.sake
inside it. Within that file you would then specify your task using namespace
and task
method calls:
namespace 'foo' do
namespace 'bar' do
desc "This task ..."
task :baz do
end
end
end
TextMate users
The latest Ruby.tmbundle on github includes a task
command that generates the above namespace/task snippet based on the path + file name. That is, inside the foo/bar/baz.sake
file, make sure your grammar is ‘Ruby’ or ‘Ruby on Rails’ and then type “task” and press TAB. The above snippet will be generated ready for you to specify your task.
Authors
- Luke Melia - many git + mysql + ssh tasks
- Dr Nic Williams - repeatable installer rake task