magic_recipes 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes/assets.rb +2 -2
- metadata +2 -2
data/lib/magic_recipes/assets.rb
CHANGED
@@ -70,7 +70,7 @@ module MagicRecipes
|
|
70
70
|
run <<-CMD
|
71
71
|
#{rvm_cmd} &&
|
72
72
|
cd #{latest_release} &&
|
73
|
-
#{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
|
73
|
+
#{sudo if use_sudo} #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
|
74
74
|
CMD
|
75
75
|
else
|
76
76
|
run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile"
|
@@ -94,7 +94,7 @@ module MagicRecipes
|
|
94
94
|
set :asset_env, "RAILS_GROUPS=assets"
|
95
95
|
DESC
|
96
96
|
task :clean, :roles => assets_role, :except => { :no_release => true } do
|
97
|
-
run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:clean"
|
97
|
+
run "cd #{latest_release} && #{sudo if use_sudo} #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:clean"
|
98
98
|
end
|
99
99
|
end
|
100
100
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic_recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|