capistrano-deploy-management 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'capistrano-deploy-management'
|
4
4
|
s.description = 'Collection of Capistrano recipes for deploying Rails apps into high-performance environments'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.29'
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Dominik Rodler']
|
8
8
|
s.email = ['dominik.rodler@gmail.com']
|
data/changelog.md
CHANGED
@@ -18,6 +18,21 @@ module CapistranoDeployManagement
|
|
18
18
|
# end
|
19
19
|
# end
|
20
20
|
end
|
21
|
+
|
22
|
+
desc 'Precompile assets if any assets have changed.'
|
23
|
+
task :lazy_precompile do
|
24
|
+
current_revision = "cat #{current_path}/REVISION"
|
25
|
+
head_revision = "cat #{latest_release}/REVISION"
|
26
|
+
assets_paths = "#{latest_release}/app/assets/ #{latest_release}/lib/assets/ #{latest_release}/vendor/assets/"
|
27
|
+
|
28
|
+
run "svn log -r #{current_revision}:#{head_revision} #{assets_paths}"
|
29
|
+
|
30
|
+
# if capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets/ app/assets/ | wc -l").to_i > 0
|
31
|
+
# run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile"
|
32
|
+
# else
|
33
|
+
# logger.info "Skipping asset pre-compilation because there were no asset changes"
|
34
|
+
# end
|
35
|
+
end
|
21
36
|
end
|
22
37
|
end
|
23
38
|
|