capistrano-craft 0.3.0 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bd49dc866da5b1f1b81620fff6c77d952e8d5067f3f6bc1268026eb87016f07
4
- data.tar.gz: 29e36ef83ca0703c993e80f48051a9e8b5fcdf289881122f96f2ad28b5464b7c
3
+ metadata.gz: 53d3297ddafeaf8f748f908c119633aad45626add662d55feb4d6f2dd361e2ff
4
+ data.tar.gz: 92c0121dcb40d4c8bce91850e87e0d37442f7b12fc452503d769b4ff3d06e936
5
5
  SHA512:
6
- metadata.gz: 75b24eee818dd00358fe1cdf9694167ccaa1827b0281e2cfdae67b6e0ee3f01a51a46d15dd290d722cbd98d30ec5cabafac7bd44b7836e5bd73abe0ce75276a6
7
- data.tar.gz: 33313144755a227f0940fe9715dcc1c6548176630291e78a0739ed88413c3aed86fd906bcb4b19cf1dd78d67f80bf6c9862d7f103480c8bfc121aa3029ab5138
6
+ metadata.gz: e6d890b59421694854722ae2175bf052d011286d200451672a3d5cd980e98c6b0cccb5d4ab4d21a17b56f218da828a8209c76aa8d6c7c3917b232040a9d4e552
7
+ data.tar.gz: c05d399ec8e6adce44aef7c911a978c9c76b08e682aff153fca5d7563712b71746d2ae8911b10b96685f6429ae948277e292b6b0bc33c8a7d1d7d5a3a4a67597
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release Notes for Capistrano Craft
2
2
 
3
+ ## 0.3.4 - 2021-10-28
4
+
5
+ - Separate out asset sync into two sub-commands push and pull.
6
+
3
7
  ## 0.3.0 - 2020-08-13
4
8
 
5
9
  - Better compatibility with Craft 3.5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-craft (0.3.0)
4
+ capistrano-craft (0.3.4)
5
5
  capistrano (~> 3.1)
6
6
  capistrano-composer (~> 0.0.6)
7
7
 
@@ -10,21 +10,21 @@ GEM
10
10
  specs:
11
11
  airbrussh (1.4.0)
12
12
  sshkit (>= 1.6.1, != 1.7.0)
13
- capistrano (3.12.1)
13
+ capistrano (3.16.0)
14
14
  airbrussh (>= 1.0.0)
15
15
  i18n
16
16
  rake (>= 10.0.0)
17
17
  sshkit (>= 1.9.0)
18
18
  capistrano-composer (0.0.6)
19
19
  capistrano (>= 3.0.0.pre)
20
- concurrent-ruby (1.1.6)
20
+ concurrent-ruby (1.1.9)
21
21
  diff-lcs (1.3)
22
- i18n (1.8.5)
22
+ i18n (1.8.10)
23
23
  concurrent-ruby (~> 1.0)
24
- net-scp (2.0.0)
25
- net-ssh (>= 2.6.5, < 6.0.0)
26
- net-ssh (5.2.0)
27
- rake (13.0.1)
24
+ net-scp (3.0.0)
25
+ net-ssh (>= 2.6.5, < 7.0.0)
26
+ net-ssh (6.1.0)
27
+ rake (13.0.6)
28
28
  rspec (3.9.0)
29
29
  rspec-core (~> 3.9.0)
30
30
  rspec-expectations (~> 3.9.0)
@@ -38,7 +38,7 @@ GEM
38
38
  diff-lcs (>= 1.2.0, < 2.0)
39
39
  rspec-support (~> 3.9.0)
40
40
  rspec-support (3.9.2)
41
- sshkit (1.21.0)
41
+ sshkit (1.21.2)
42
42
  net-scp (>= 1.1.2)
43
43
  net-ssh (>= 2.8.0)
44
44
 
@@ -50,4 +50,4 @@ DEPENDENCIES
50
50
  rspec
51
51
 
52
52
  BUNDLED WITH
53
- 2.0.2
53
+ 2.2.4
@@ -2,7 +2,12 @@
2
2
  # Craft CMS defaults
3
3
  #
4
4
 
5
- append :linked_dirs, "vendor", "storage"
5
+ append :linked_dirs, "vendor",
6
+ "storage/backups",
7
+ "storage/composer-backups",
8
+ "storage/config-backups",
9
+ "storage/logs",
10
+ "storage/runtime"
6
11
 
7
12
  set :config_path, "config"
8
13
  set :php, "php"
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Craft
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -31,7 +31,9 @@ namespace :craft do
31
31
  task :apply do
32
32
  on release_roles(fetch(:craft_deploy_roles)) do
33
33
  craft_console "backup/db"
34
+ craft_console "migrate/all --no-content"
34
35
  craft_console "project-config/apply"
36
+ craft_console "migrate"
35
37
  end
36
38
  end
37
39
  end
@@ -39,9 +41,23 @@ namespace :craft do
39
41
  namespace :assets do
40
42
  desc "Synchronise assets between local and remote server"
41
43
  task :sync do
44
+ invoke "craft:assets:pull"
45
+ invoke "craft:assets:push"
46
+ end
47
+
48
+ desc "Download all assets from the remote server"
49
+ task :pull do
42
50
  run_locally do
43
51
  release_roles(fetch(:craft_deploy_roles)).each do |role|
44
52
  execute :rsync, "-rzO #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}/ #{fetch(:assets_path)}"
53
+ end
54
+ end
55
+ end
56
+
57
+ desc "Upload all assets to the remote server"
58
+ task :push do
59
+ run_locally do
60
+ release_roles(fetch(:craft_deploy_roles)).each do |role|
45
61
  execute :rsync, "-rzO #{fetch(:assets_path)}/ #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}"
46
62
  end
47
63
  end
@@ -58,13 +74,13 @@ namespace :craft do
58
74
  desc "Pull database and sync assets"
59
75
  task :pull do
60
76
  invoke "db:pull"
61
- invoke "craft:assets:sync"
77
+ invoke "craft:assets:pull"
62
78
  end
63
79
 
64
80
  desc "Push database and sync assets"
65
81
  task :push do
66
82
  invoke "db:push"
67
- invoke "craft:assets:sync"
83
+ invoke "craft:assets:push"
68
84
  invoke "craft:assets:reindex"
69
85
  end
70
86
 
@@ -15,6 +15,6 @@ namespace :deploy do
15
15
  end
16
16
 
17
17
  after 'deploy:updated', 'deploy:compile_assets'
18
- after 'deploy:finished', 'craft:config:apply'
18
+ before 'deploy:published', 'craft:config:apply'
19
19
  after 'deploy:finished', 'craft:cache:clear'
20
- end
20
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-craft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Dyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.0.3
87
+ rubygems_version: 3.1.4
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Capistrano Craft - Easy deployment of Symfony 4 apps with Ruby over SSH