capistrano-elobuff 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/elobuff_capistrano.gemspec +1 -1
- data/lib/capistrano/elobuff/recipes/assets.rb +26 -0
- metadata +2 -1
data/elobuff_capistrano.gemspec
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
require_settings :current_path
|
3
|
+
|
4
|
+
after "deploy:update_code", "assets:compile"
|
5
|
+
after "deploy:update_code", "assets:upload_manifest"
|
6
|
+
|
7
|
+
namespace :assets do
|
8
|
+
desc "Compile and sync assets"
|
9
|
+
task :compile do
|
10
|
+
if ENV["AWS_S3_KEY"] && ENV["AWS_S3_SECRET"]
|
11
|
+
system "bundle exec rake assets:precompile" unless dry_run
|
12
|
+
else
|
13
|
+
puts "Warning: skipping asset compilation (no credentials)"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "Upload asset manifest"
|
18
|
+
task :upload_manifest do
|
19
|
+
if File.exists?("public/manifest.yml")
|
20
|
+
upload "public/manifest.yml", "#{current_path}/public/manifest.yml"
|
21
|
+
else
|
22
|
+
puts "Warning: skipping asset manifest upload (does not exist)"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-elobuff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- lib/capistrano/elobuff/ec2/recipes/z.rb
|
53
53
|
- lib/capistrano/elobuff/ec2/server.rb
|
54
54
|
- lib/capistrano/elobuff/helpers.rb
|
55
|
+
- lib/capistrano/elobuff/recipes/assets.rb
|
55
56
|
- lib/capistrano/elobuff/recipes/bundler.rb
|
56
57
|
- lib/capistrano/elobuff/recipes/code.rb
|
57
58
|
- lib/capistrano/elobuff/recipes/console.rb
|