Skip to content
Browse files

Add pretty printing to symfony:assets:update_version

  • Loading branch information...
1 parent 38c13fa commit 4d5e9ec09cad88b7f8495485d8677fca178d33fd @richardfullmer richardfullmer committed Feb 13, 2013
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 4d5e9ec

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