capistrano-craft 0.3.3 → 0.3.5

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
2
  SHA256:
3
- metadata.gz: 5d6c03404782f89e7063e13165d4f360ecc69a0bcc1b969e6bcf0c46444a4e31
4
- data.tar.gz: 6eb13cc9113b8e7e7fafb25ffdc687aaf9b16fb4e72ec2b98f353c9693b0d6f6
3
+ metadata.gz: 3c264de0fcbb0355e51c9f40454d49ae35c8de2ed1d051f95e82a6c190b255b2
4
+ data.tar.gz: 20e6ce10f4db8cd2a7093042edf45ca7750eb657974e01a9b2406edf22030d23
5
5
  SHA512:
6
- metadata.gz: 52d48ee4b855b35639969d97ec951e1b0c6319b568d6b1487c74cc15c89aa9754a03eaabc858f4c7cdd0f9892a1f9a64b0f469a7419a71d7927e5c23dbdeb02c
7
- data.tar.gz: 84d341602d8c8e2b01504969cc6875b1cc5aed71630686db898f1a97f48148fae188960ca37aab23a8e53a347f181b75262eb07acb370209902de80ac8da8664
6
+ metadata.gz: 9482ef35c3eb51361df52935496c4d995c9a58c5abda360caafda81cb2f96014a1118be48033d38f73eb501730c7804fe7d5634280d5586120d0e13fe2cbd979
7
+ data.tar.gz: 8187f14500a0688ec9105f1dc571840ebe39853d5b7cfa6327db54182d9d46841441c05f6edd781e37a60e640cbc0664f828127482306ef8cd5ea8f12332a3ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release Notes for Capistrano Craft
2
2
 
3
+ ## 0.3.5 - 2021-10-28
4
+
5
+ - Use `db/backup` instead of deprecated `backup/db` command
6
+
7
+ ## 0.3.4 - 2021-10-28
8
+
9
+ - Separate out asset sync into two sub-commands push and pull.
10
+
3
11
  ## 0.3.0 - 2020-08-13
4
12
 
5
13
  - Better compatibility with Craft 3.5
data/Gemfile.lock CHANGED
@@ -1,30 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-craft (0.3.3)
4
+ capistrano-craft (0.3.5)
5
5
  capistrano (~> 3.1)
6
6
  capistrano-composer (~> 0.0.6)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- airbrussh (1.4.0)
11
+ airbrussh (1.5.1)
12
12
  sshkit (>= 1.6.1, != 1.7.0)
13
- capistrano (3.16.0)
13
+ capistrano (3.18.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.9)
20
+ concurrent-ruby (1.2.3)
21
21
  diff-lcs (1.3)
22
- i18n (1.8.10)
22
+ i18n (1.14.1)
23
23
  concurrent-ruby (~> 1.0)
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)
24
+ mutex_m (0.2.0)
25
+ net-scp (4.0.0)
26
+ net-ssh (>= 2.6.5, < 8.0.0)
27
+ net-sftp (4.0.0)
28
+ net-ssh (>= 5.0.0, < 8.0.0)
29
+ net-ssh (7.2.1)
30
+ rake (13.1.0)
28
31
  rspec (3.9.0)
29
32
  rspec-core (~> 3.9.0)
30
33
  rspec-expectations (~> 3.9.0)
@@ -38,8 +41,10 @@ GEM
38
41
  diff-lcs (>= 1.2.0, < 2.0)
39
42
  rspec-support (~> 3.9.0)
40
43
  rspec-support (3.9.2)
41
- sshkit (1.21.2)
44
+ sshkit (1.22.0)
45
+ mutex_m
42
46
  net-scp (>= 1.1.2)
47
+ net-sftp (>= 2.1.2)
43
48
  net-ssh (>= 2.8.0)
44
49
 
45
50
  PLATFORMS
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Craft
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ namespace :craft do
30
30
  desc "Apply the project config to database after running Craft backup command"
31
31
  task :apply do
32
32
  on release_roles(fetch(:craft_deploy_roles)) do
33
- craft_console "backup/db"
33
+ craft_console "db/backup"
34
34
  craft_console "migrate/all --no-content"
35
35
  craft_console "project-config/apply"
36
36
  craft_console "migrate"
@@ -41,9 +41,23 @@ namespace :craft do
41
41
  namespace :assets do
42
42
  desc "Synchronise assets between local and remote server"
43
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
44
50
  run_locally do
45
51
  release_roles(fetch(:craft_deploy_roles)).each do |role|
46
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|
47
61
  execute :rsync, "-rzO #{fetch(:assets_path)}/ #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}"
48
62
  end
49
63
  end
@@ -60,13 +74,13 @@ namespace :craft do
60
74
  desc "Pull database and sync assets"
61
75
  task :pull do
62
76
  invoke "db:pull"
63
- invoke "craft:assets:sync"
77
+ invoke "craft:assets:pull"
64
78
  end
65
79
 
66
80
  desc "Push database and sync assets"
67
81
  task :push do
68
82
  invoke "db:push"
69
- invoke "craft:assets:sync"
83
+ invoke "craft:assets:push"
70
84
  invoke "craft:assets:reindex"
71
85
  end
72
86
 
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.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Dyer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-27 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -69,7 +69,7 @@ licenses:
69
69
  metadata:
70
70
  homepage_uri: https://github.com/dyerc/capistrano-craft
71
71
  source_code_uri: https://github.com/dyerc/capistrano-craft
72
- post_install_message:
72
+ post_install_message:
73
73
  rdoc_options: []
74
74
  require_paths:
75
75
  - lib
@@ -84,8 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.1.4
88
- signing_key:
87
+ rubygems_version: 3.3.26
88
+ signing_key:
89
89
  specification_version: 4
90
90
  summary: Capistrano Craft - Easy deployment of Symfony 4 apps with Ruby over SSH
91
91
  test_files: []