capistrano-craft 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/capistrano/craft/version.rb +1 -1
- data/lib/capistrano/tasks/craft.rake +16 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d3297ddafeaf8f748f908c119633aad45626add662d55feb4d6f2dd361e2ff
|
4
|
+
data.tar.gz: 92c0121dcb40d4c8bce91850e87e0d37442f7b12fc452503d769b4ff3d06e936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6d890b59421694854722ae2175bf052d011286d200451672a3d5cd980e98c6b0cccb5d4ab4d21a17b56f218da828a8209c76aa8d6c7c3917b232040a9d4e552
|
7
|
+
data.tar.gz: c05d399ec8e6adce44aef7c911a978c9c76b08e682aff153fca5d7563712b71746d2ae8911b10b96685f6429ae948277e292b6b0bc33c8a7d1d7d5a3a4a67597
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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:
|
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:
|
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.
|
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-
|
11
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|