jefferies_tube 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jefferies_tube/capistrano/s3_assets.rb +3 -7
- data/lib/jefferies_tube/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d06cfabdade9e68241e375646fa6f493c89db7ef
|
4
|
+
data.tar.gz: d99e67ed69c4d05d85ee990fc3dd1576e4b73ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc5f699e1c580546d2bf840e97a587cf2a3a8fa3deec44aa62de5693a1cfc46bd9b781ced14bee690aceffe296eefc2668fee63c3a9d0b3d20c9b9230ff35e68
|
7
|
+
data.tar.gz: 0968e69405a4a132f37f1f01db0b4b59cbc272989af06ccd398933189fb24b4ad6a1100bf7c3b86646e53e4ebac1900cd138e762ed067f9805121d48a2a01803
|
@@ -1,13 +1,9 @@
|
|
1
|
-
task :
|
2
|
-
on roles(:
|
1
|
+
task :upload_assets_to_s3 do
|
2
|
+
on roles(fetch(:assets_roles)) do
|
3
3
|
within release_path do
|
4
|
-
with rails_env: fetch(:rails_env), rails_groups: fetch(:rails_assets_groups) do
|
5
|
-
execute :rake, "assets:precompile"
|
6
|
-
end
|
7
|
-
|
8
4
|
appyml_text = capture :cat, "#{deploy_to}/shared/config/application.yml"
|
9
5
|
appyml = YAML.load appyml_text
|
10
|
-
execute "AWS_ACCESS_KEY_ID=#{appyml['AWS_ACCESS_KEY_ID']}", "AWS_SECRET_ACCESS_KEY=#{appyml["AWS_SECRET_ACCESS_KEY"]}", 'aws', 's3', 'sync', 'public/assets/',
|
6
|
+
execute "AWS_ACCESS_KEY_ID=#{appyml['AWS_ACCESS_KEY_ID']}", "AWS_SECRET_ACCESS_KEY=#{appyml["AWS_SECRET_ACCESS_KEY"]}", 'aws', 's3', 'sync', 'public/assets/', fetch(:s3_destination)
|
11
7
|
end
|
12
8
|
end
|
13
9
|
end
|