Skip to content

Commit

Permalink
Merge pull request #227 from javiereguiluz/fix_assets_update_version
Browse files Browse the repository at this point in the history
Tweaked the way 'assets_version' value is updated
  • Loading branch information
willdurand committed Sep 13, 2012
2 parents 39909f9 + d6722d4 commit 13ea2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/symfony2/symfony.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
namespace :assets do
desc "Updates assets version (in config.yml)"
task :update_version, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} sed -i 's/\\(assets_version: \\)\\(.*\\)$/\\1 #{real_revision}/g' #{latest_release}/#{app_path}/config/config.yml"
run "#{try_sudo} sed -i 's/\\(assets_version: \\)\\([a-zA-Z0-9_]*\\)\\(.*\\)$/\\1 \"#{real_revision[0,7]}\"\\3/g' #{latest_release}/#{app_path}/config/config.yml"
end

desc "Installs bundle's assets"
Expand Down

0 comments on commit 13ea2f8

Please sign in to comment.