capistrano-rails-synchronizer 0.1.6 → 0.2.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a78cc9693adc4908baafb22c1c09e6db0313cd87
4
- data.tar.gz: c758a96046ca2c147e1643027219daf74e06a3f8
2
+ SHA256:
3
+ metadata.gz: c022c9b532fcde4574ee6ad30c4ba575ce87acc32309a7caa453e3cc5361771b
4
+ data.tar.gz: c359bd93d5aa29a461ed8bcfe75cf2d9e4005b6bc4461c0e0c7453a2445a9552
5
5
  SHA512:
6
- metadata.gz: c87ef1afc2b104507832f5d235330b86f92a0eda611caf7a3c8196c32b255ee35a9d3aa64d03e54e151b90641bbd181e3f44742364855282ef74204d02726fc0
7
- data.tar.gz: a0e3c6fbe4d7bc01d46b16d79582b8f2841f88318d0c67daef12ecf6a210088884d18117d4f9cf8aac607bc56146b5a137937dd4c003b8bd05006aa0294eceaa
6
+ metadata.gz: 7f16b543ec77e467b0d97f3d5a8d28317e273a1f16c97d199d62017cb6c951831c4023cbd95c4f2e15ca0a743631459076d4eea0172d139ce3330ff19c55cc69
7
+ data.tar.gz: 1eef88396a82febaccd646a26654eec300e18085af8a68df7474e5ab09b94093a2bf244ef007be1a872fd88c79d1b386fadf0ed2179859755d2f69136a50d364
data/lib/synchronizer.rb CHANGED
@@ -5,5 +5,5 @@ require 'synchronizer/helper'
5
5
  begin
6
6
  load File.expand_path("../tasks/sync.rake", __FILE__)
7
7
  rescue
8
- puts "make sure to add require: false the gem in your Gemfile"
8
+ puts "WARNING: make sure to add 'require: false' to gem 'capistrano-rails-synchronizer' your Gemfile"
9
9
  end
@@ -3,28 +3,37 @@ module Assets
3
3
  def pack_assets
4
4
  on roles :web do
5
5
  execute "cd #{shared_path}; #{pack_assets_cmd}"
6
+ execute "cd #{shared_path}; #{pack_storage_cmd}"
6
7
  end
7
8
  end
8
9
 
9
10
 
10
11
  def copy_assets_to_local
11
12
  download! "#{fetch(:assets_archive_file)}", "#{fetch(:assets_archive_file).split('/')[-1]}"
13
+ download! "#{fetch(:storage_archive_file)}", "#{fetch(:storage_archive_file).split('/')[-1]}"
12
14
  end
13
15
 
14
16
  def copy_assets_cmd
15
17
  if dest = fetch(:sync_assets_to, nil)
16
18
  scp_file(fetch(:assets_archive_file), dest)
19
+ scp_file(fetch(:storage_archive_file), dest)
17
20
  else
18
21
  raise "missing variable sync_assets_to"
19
22
  end
20
23
  end
21
24
 
22
25
 
23
- private
26
+ private
24
27
 
25
28
  def pack_assets_cmd
26
29
  assets_archive = "#{shared_path}/public-#{fetch(:stage)}.tgz"
27
30
  set :assets_archive_file, assets_archive
28
- "tar cvfzp #{assets_archive} ./public"
31
+ "tar cvfzp #{assets_archive} ./public"
32
+ end
33
+
34
+ def pack_storage_cmd
35
+ storage_archive = "#{shared_path}/storage-#{fetch(:stage)}.tgz"
36
+ set :storage_archive_file, storage_archive
37
+ "tar cvfzp #{storage_archive} ./storage"
29
38
  end
30
39
  end
metadata CHANGED
@@ -1,35 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rails-synchronizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rene paulokat
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDXDCCAkSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA6MQ0wCwYDVQQDDARyZW5l
14
- MRQwEgYKCZImiZPyLGQBGRYEc28zNjETMBEGCgmSJomT8ixkARkWA25ldDAeFw0x
15
- NTA3MTAxNTMyNDRaFw0xNjA3MDkxNTMyNDRaMDoxDTALBgNVBAMMBHJlbmUxFDAS
16
- BgoJkiaJk/IsZAEZFgRzbzM2MRMwEQYKCZImiZPyLGQBGRYDbmV0MIIBIjANBgkq
17
- hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8RqRHqGzIcZgYV9cC5DygM6rA5T3sadk
18
- guHNaqV+VH8+eYOUpHFt4ej1iEPya5jBErsHZEKXLhQZ1Sh6yKpqvT4sQLrTkQ0Y
19
- naOmQmueOvOoeJOE8eUMIGiCqsBmPFcUzIcpgZ2Sibu0VZsOGzurpT7Lzj6fXiu/
20
- OugAVvclfVMy+MB8orB0GV2nmZ2Hs6V0DmspIvLXhp2c+y4HXWiqXvleFx9dTwWc
21
- k5OND1vR9tYN+3EBte5ETnQ5N26ZYRgeuEKxVbxrDODzfeZUCSrfIqHqH8KDvc7X
22
- 0ZvKlOZ58ZZ0TEm7BDLfCg9JdfJ5CPFwEuCDxZAyFfk7bFtobI0ubQIDAQABo20w
23
- azAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU//+NDAgo3pOzGygK
24
- S3orEjBTxJQwGAYDVR0RBBEwD4ENcmVuZUBzbzM2Lm5ldDAYBgNVHRIEETAPgQ1y
25
- ZW5lQHNvMzYubmV0MA0GCSqGSIb3DQEBBQUAA4IBAQBmSt3BBM2Gf3y1YugJFpCj
26
- J+XD0OjuRNfkXS67JkRcPeVydr6RZPS7IAx7LHmyvqSeMRLP4jp0VUyJbI/qNCN1
27
- hhXMVdLM2bANjn/rlJEPvpdDgypuXk7AuMjXQpUU3EGq+EcPbot+RfSlGg4Ndn3D
28
- cfD4sx2+gWoBefqQXp3D8DKUFWbny2sC3raPXdHVd0qQ03mldyrxMHxqPYmqDiOs
29
- oSb+3px5AogC7i+BxZ28l/vs8zx8OnlDmS631gRSLH777KsaR6/oWntvsvPm8Jgr
30
- EePKDI8r9ZSVkkt3XFn5MWAfX5hxvegGS5ExfyNtFeE8e+3B2Ha6ge9B6HTn+chR
31
- -----END CERTIFICATE-----
32
- date: 2015-07-10 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2019-02-12 00:00:00.000000000 Z
33
12
  dependencies:
34
13
  - !ruby/object:Gem::Dependency
35
14
  name: capistrano-rails
@@ -74,12 +53,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
53
  version: '0'
75
54
  required_rubygems_version: !ruby/object:Gem::Requirement
76
55
  requirements:
77
- - - ">="
56
+ - - ">"
78
57
  - !ruby/object:Gem::Version
79
- version: '0'
58
+ version: 1.3.1
80
59
  requirements: []
81
60
  rubyforge_project:
82
- rubygems_version: 2.4.8
61
+ rubygems_version: 2.7.7
83
62
  signing_key:
84
63
  specification_version: 4
85
64
  summary: Rails specific Capistrano tasks to synchonize stages
checksums.yaml.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- wmK6��U�j#�l������<��f�!��]}��f����4y��=� �4�DD�_�n�u�
2
- x�j�m{�P���ݱ$.�X��|����1�j�;["�Ugrq��^E�T�N=)B{�>m��Y�\��3&I`���?]!*zQ��9��lU�SZ����|?/]L&ȴvU�Ͱ�5&x�������`7��O>�-�9Nе��ɭ�� �<��aG����9����)��څ���}��Ӥ��8&���&!��Q
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file