lib/magic_recipes/assets.rb in magic_recipes-0.0.4 vs lib/magic_recipes/assets.rb in magic_recipes-0.0.5
- old
+ new
@@ -48,14 +48,13 @@
if make_pulbic_folder_public
chmod
end
if use_rvm
run <<-CMD
- source '#{rvm_path}/scripts/rvm' &&
- rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
- cd #{latest_release} &&
- #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
- CMD
+ #{rvm_cmd} &&
+ cd #{latest_release} &&
+ #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
+ CMD
else
run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile"
end
end
\ No newline at end of file