lib/magic_recipes/assets.rb in magic_recipes-0.1.2 vs lib/magic_recipes/assets.rb in magic_recipes-0.1.3

- old
+ new

@@ -42,13 +42,13 @@ for efficiency. If you customize the assets path prefix, override the \ :assets_prefix variable to match. DESC task :symlink, :roles => assets_role, :except => { :no_release => true } do run <<-CMD - rm -rf #{latest_release}/public/#{assets_prefix} && - mkdir -p #{latest_release}/public && - mkdir -p #{shared_path}/assets && - ln -s #{shared_path}/assets #{latest_release}/public/#{assets_prefix} + #{sudo if use_sudo} rm -rf #{latest_release}/public/#{assets_prefix} && + #{sudo if use_sudo} mkdir -p #{latest_release}/public && + #{sudo if use_sudo} mkdir -p #{shared_path}/assets && + #{sudo if use_sudo} ln -s #{shared_path}/assets #{latest_release}/public/#{assets_prefix} CMD end desc <<-DESC Run the asset precompilation rake task. You can specify the full path \ \ No newline at end of file