Skip to content

Commit

Permalink
Capifony recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
shivas committed Jul 23, 2013
1 parent b7d2bae commit 6fc468b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,25 @@ Registered Version handlers

So, next time you execute version bump, your custom git handler will take care for your version building.

Capifony task for version bump
-

Add following to your recipe
```ruby
namespace :version do
desc "Updates version using app:version:bump symfony command"
task :bump, :roles => :app, :except => { :no_release => true } do
capifony_pretty_print "--> Bumping version"
run "#{try_sudo} sh -c 'cd #{latest_release} && #{php_bin} #{symfony_console} app:version:bump #{console_options}'"
capifony_puts_ok
end
end

# bump version before cache is created
before "symfony:assets:install", "version:bump"
after "version:bump", "symfony:cache:clear"
```

Good luck versioning your project.

Contributions for different SCM's and etc are welcome, use pull request.

0 comments on commit 6fc468b

Please sign in to comment.