capistrano-didi 0.5.2 → 0.5.3
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/VERSION +1 -1
- data/capistrano-didi.gemspec +1 -1
- data/lib/capistrano/tasks/didi.rake +19 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 104f400ec767dd6ea7b9bb5f0713e3a0573722df
|
|
4
|
+
data.tar.gz: e0ec264866c66ec57df7cfe963495862376fc70d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c258f0d9a98dfc64b09a9e783566b777480122811ff8988a107dabb606dfc85d3bc59098cae74d7240979192be16fe45ab4ce267a279fc2bf4f353ecad05c5f2
|
|
7
|
+
data.tar.gz: 79d19f628a0425b09d751bd32141925927e632e3f8309f42a16eae339c695ba73f8e838599141001716122a7c1b55c24cbf6cc8e24c0200bf58b52bb73795622
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.3
|
data/capistrano-didi.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
9
9
|
|
|
10
10
|
Gem::Specification.new do |s|
|
|
11
11
|
s.name = "capistrano-didi"
|
|
12
|
-
s.version = "0.5.
|
|
12
|
+
s.version = "0.5.3"
|
|
13
13
|
|
|
14
14
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
15
15
|
s.require_paths = ["lib"]
|
|
@@ -4,10 +4,11 @@ namespace :load do
|
|
|
4
4
|
task :defaults do
|
|
5
5
|
set :composer_download_url, "https://getcomposer.org/installer"
|
|
6
6
|
|
|
7
|
+
set :install_composer_exec, true
|
|
7
8
|
set :install_composer, true
|
|
8
9
|
set :install_drush, true
|
|
9
10
|
|
|
10
|
-
set :drupal_path, -> { "
|
|
11
|
+
set :drupal_path, -> { "web" }
|
|
11
12
|
|
|
12
13
|
set :db_backup_path, -> { "db_backups" }
|
|
13
14
|
|
|
@@ -29,7 +30,7 @@ end
|
|
|
29
30
|
namespace :deploy do
|
|
30
31
|
desc 'Deploy your project and do an updatedb, feature revert, cache clear...'
|
|
31
32
|
task :drupal do
|
|
32
|
-
if fetch(:
|
|
33
|
+
if fetch(:install_composer_exec)
|
|
33
34
|
invoke "composer:install_executable"
|
|
34
35
|
end
|
|
35
36
|
|
|
@@ -37,6 +38,10 @@ namespace :deploy do
|
|
|
37
38
|
invoke "drush:install"
|
|
38
39
|
end
|
|
39
40
|
|
|
41
|
+
if fetch(:install_composer)
|
|
42
|
+
invoke "drupal:composer:install"
|
|
43
|
+
end
|
|
44
|
+
|
|
40
45
|
invoke "drupal:update:updatedb"
|
|
41
46
|
|
|
42
47
|
invoke "drupal:config:import"
|
|
@@ -59,11 +64,20 @@ end
|
|
|
59
64
|
|
|
60
65
|
# Specific Drupal tasks
|
|
61
66
|
namespace :drupal do
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
|
|
68
|
+
namespace :composer do
|
|
69
|
+
desc 'Test task'
|
|
70
|
+
task :install do
|
|
71
|
+
on roles(:app) do
|
|
72
|
+
within release_path do
|
|
73
|
+
execute :composer, 'install'
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
65
77
|
end
|
|
66
78
|
|
|
79
|
+
|
|
80
|
+
|
|
67
81
|
desc 'Run any drush command'
|
|
68
82
|
task :drush do
|
|
69
83
|
ask(:drush_command, "Drush command you want to run (eg. 'cache-rebuild'). Type 'help' to have a list of available command.")
|