capistrano-craft 0.1.1 → 0.1.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/capistrano/craft/version.rb +1 -1
- data/lib/capistrano/dsl/craft.rb +1 -1
- data/lib/capistrano/tasks/craft.rake +8 -7
- data/lib/capistrano/tasks/db.rake +3 -3
- data/lib/capistrano/tasks/deploy.rake +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0307770f776f3de8aa29e6903060ef0549e7bf81
|
4
|
+
data.tar.gz: f4d15ac89b13f88992b32e9b0c67d4cf0262695e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d30b65c31c6f3cabaac3711ed517b7986d4cd75db98320aee342f35670297bbdc96b327ae96f3b7587d8878e55d43950291f57ce89e7773fe4d0d23bd800ebf
|
7
|
+
data.tar.gz: 2d0c5092c8f1cc8c500e34d937cbc0499885303c3549c19100f284c65cd65efd1d1716acc72dc3e27ec59816bc46e859322e59a6ab2b05b930f05f36c8adee81
|
data/Gemfile.lock
CHANGED
data/lib/capistrano/dsl/craft.rb
CHANGED
@@ -17,7 +17,8 @@ namespace :craft do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
namespace :cache do
|
20
|
-
|
20
|
+
desc "Run the cache/flush Craft command"
|
21
|
+
task :flush do
|
21
22
|
on release_roles(fetch(:craft_deploy_roles)) do
|
22
23
|
craft_console "cache/flush"
|
23
24
|
end
|
@@ -29,9 +30,8 @@ namespace :craft do
|
|
29
30
|
task :sync do
|
30
31
|
run_locally do
|
31
32
|
release_roles(fetch(:craft_deploy_roles)).each do |role|
|
32
|
-
|
33
|
-
execute :rsync, "-
|
34
|
-
execute :rsync, "-rvzO #{fetch(:assets_path)}/ #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}"
|
33
|
+
execute :rsync, "-rzO #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}/ #{fetch(:assets_path)}"
|
34
|
+
execute :rsync, "-rzO #{fetch(:assets_path)}/ #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -40,12 +40,13 @@ namespace :craft do
|
|
40
40
|
desc "Pull database and sync assets"
|
41
41
|
task :pull do
|
42
42
|
invoke "db:pull"
|
43
|
-
invoke "craft:
|
43
|
+
invoke "craft:assets:sync"
|
44
44
|
end
|
45
45
|
|
46
46
|
desc "Push database and sync assets"
|
47
47
|
task :push do
|
48
48
|
invoke "db:push"
|
49
|
-
invoke "craft:
|
50
|
-
|
49
|
+
invoke "craft:assets:sync"
|
50
|
+
end
|
51
|
+
|
51
52
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
namespace :db do
|
2
2
|
namespace :local do
|
3
|
-
desc "Export the local database to
|
3
|
+
desc "Export the local database (to db.sql by default)"
|
4
4
|
task :backup do
|
5
5
|
run_locally do
|
6
6
|
database_dump(fetch(:craft_local_env), fetch(:craft_local_db_dump))
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
|
-
desc "Import into the local database from
|
10
|
+
desc "Import into the local database (from db.sql by default)"
|
11
11
|
task :import do
|
12
12
|
run_locally do
|
13
13
|
database_restore(fetch(:craft_local_env), fetch(:craft_local_db_dump))
|
@@ -35,7 +35,7 @@ namespace :db do
|
|
35
35
|
task :pull do
|
36
36
|
invoke 'db:backup'
|
37
37
|
|
38
|
-
|
38
|
+
run_locally do
|
39
39
|
database_restore(fetch(:craft_local_env), fetch(:backup_filename))
|
40
40
|
end
|
41
41
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Dyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|