Permalink
Browse files

Coerce `rails_env` to String

This allows `rails_env` to be a symbol, which was the case in earlier
realases (even though it was incidental).
  • Loading branch information...
1 parent 11cb75a commit 06a4ee06242cc1aa9eb1501ca526171d94716e06 @bricker bricker committed Jan 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/recipes/deploy/assets.rb
@@ -45,7 +45,7 @@
task :precompile, :roles => assets_role, :except => { :no_release => true } do
run <<-CMD.compact
cd -- #{latest_release.shellescape} &&
- #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env} assets:precompile &&
+ #{rake} RAILS_ENV=#{rails_env.to_s.shellescape} #{asset_env} assets:precompile &&
cp -- #{shared_path.shellescape}/assets/manifest.yml #{current_release.shellescape}/assets_manifest.yml
CMD
end
@@ -154,7 +154,7 @@
run <<-CMD.compact
cd -- #{previous_release.shellescape} &&
cp -f -- #{previous_manifest.shellescape} #{shared_path.shellescape}/assets/manifest.yml &&
- #{rake} RAILS_ENV=#{rails_env.shellescape} #{asset_env} assets:precompile:nondigest
+ #{rake} RAILS_ENV=#{rails_env.to_s.shellescape} #{asset_env} assets:precompile:nondigest
CMD
end
end

0 comments on commit 06a4ee0

Please sign in to comment.