jefferies_tube 0.1.6 → 0.1.7
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 +18 -0
- data/lib/jefferies_tube/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98ee07f2822dc127b9cfb3326a709330aa486bc4
|
4
|
+
data.tar.gz: 4453bb6c1c4f56bd7d4fb14fe9f2ed77fe69c835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 965a91177d826698f3f99949d6a814ca8653029eebc6880ba0d3198fdb8959095e584561bad2d7cf95a3ad566e22666087f43bf3cde83395ef75acbd6d18ad7a
|
7
|
+
data.tar.gz: d4b2ab295c72a1cae4754da0fcba8ad49bf99630bf4d43b434b9c07dae2f56773fe8dfcd92bbb2cfbdf5dc26b781e9c76434070002f4dd0af75eceba44ebb676
|
@@ -7,3 +7,21 @@ task :upload_assets_to_s3 do
|
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
10
|
+
|
11
|
+
# From https://github.com/capistrano/rails/issues/89
|
12
|
+
task :copy_assets_manifest do
|
13
|
+
next unless roles(:web, :app).count > 1
|
14
|
+
manifest_contents, manifest_name = nil, nil
|
15
|
+
assets_path = release_path.join('public', fetch(:assets_prefix))
|
16
|
+
|
17
|
+
on roles(fetch(:assets_roles)), primary: true do
|
18
|
+
manifest_name = capture(:ls, assets_path.join('.sprockets-manifest*')).strip
|
19
|
+
manifest_contents = download! assets_path.join(manifest_name)
|
20
|
+
end
|
21
|
+
on roles(:app) do
|
22
|
+
execute :rm, '-f', assets_path.join('.sprockets-manifest*')
|
23
|
+
upload! StringIO.new(manifest_contents), assets_path.join(manifest_name)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
after "upload_assets_to_s3", :copy_assets_manifest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jefferies_tube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.
|
175
|
+
rubygems_version: 2.4.5.1
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Ten Forward Consulting useful tools.
|