capistrano-craft 0.3.3 → 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: 5d6c03404782f89e7063e13165d4f360ecc69a0bcc1b969e6bcf0c46444a4e31
4
- data.tar.gz: 6eb13cc9113b8e7e7fafb25ffdc687aaf9b16fb4e72ec2b98f353c9693b0d6f6
3
+ metadata.gz: 53d3297ddafeaf8f748f908c119633aad45626add662d55feb4d6f2dd361e2ff
4
+ data.tar.gz: 92c0121dcb40d4c8bce91850e87e0d37442f7b12fc452503d769b4ff3d06e936
5
5
  SHA512:
6
- metadata.gz: 52d48ee4b855b35639969d97ec951e1b0c6319b568d6b1487c74cc15c89aa9754a03eaabc858f4c7cdd0f9892a1f9a64b0f469a7419a71d7927e5c23dbdeb02c
7
- data.tar.gz: 84d341602d8c8e2b01504969cc6875b1cc5aed71630686db898f1a97f48148fae188960ca37aab23a8e53a347f181b75262eb07acb370209902de80ac8da8664
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.3)
4
+ capistrano-craft (0.3.4)
5
5
  capistrano (~> 3.1)
6
6
  capistrano-composer (~> 0.0.6)
7
7
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Craft
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -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.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: 2021-07-27 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