Skip to content
Browse files

Merge pull request #338 from richardfullmer/pretty-print-asset-versio…

…n-update

Add pretty printing to symfony:assets:update_version
  • Loading branch information...
2 parents 38c13fa + 4d5e9ec commit 2da53a2917fbe2cb25f8ad03ab4f14cf402ec263 @willdurand willdurand committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/symfony2/symfony.rb
View
4 lib/symfony2/symfony.rb
@@ -26,7 +26,11 @@
namespace :assets do
desc "Updates assets version (in config.yml)"
task :update_version, :roles => :app, :except => { :no_release => true } do
+ capifony_pretty_print "--> Updating assets version (in config.yml)"
+
run "#{try_sudo} sed -i 's/\\(assets_version:[ ]*\\)\\([a-zA-Z0-9_]*\\)\\(.*\\)$/\\1#{real_revision[0,7]}\\3/g' #{latest_release}/#{app_config_path}/config.yml"
+
+ capifony_puts_ok
end
desc "Installs bundle's assets"

0 comments on commit 2da53a2

Please sign in to comment.
Something went wrong with that request. Please try again.