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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c458ff2ea0bc3b5db38f60dba8082b9b5a1ff67
4
- data.tar.gz: e3c01859f434d3a451ea52894020ee9dceee6428
3
+ metadata.gz: 104f400ec767dd6ea7b9bb5f0713e3a0573722df
4
+ data.tar.gz: e0ec264866c66ec57df7cfe963495862376fc70d
5
5
  SHA512:
6
- metadata.gz: e41247595fd602c90debe81ad7807a32a6f661b65e3c48797fe60802ac81184871bb56ae31406d92a120b6a9932c386dcbc1472cc1da47ca3f8e17d77a0c5023
7
- data.tar.gz: 9294605a88946ea56aa30c74a3b01fea0fd06c3bdd8770aff8388abce6f69bfb04d321e92b594608fe33195a0e1581b266cc36ac3ae221d68a5c6619ac7b675a
6
+ metadata.gz: c258f0d9a98dfc64b09a9e783566b777480122811ff8988a107dabb606dfc85d3bc59098cae74d7240979192be16fe45ab4ce267a279fc2bf4f353ecad05c5f2
7
+ data.tar.gz: 79d19f628a0425b09d751bd32141925927e632e3f8309f42a16eae339c695ba73f8e838599141001716122a7c1b55c24cbf6cc8e24c0200bf58b52bb73795622
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -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.2"
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, -> { "docroot" }
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(:install_composer)
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
- desc 'Test task'
63
- task :flip do
64
- puts "test drupal task"
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.")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-didi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ausy Belgium