forkcms_deploy 2.3.0 → 2.4.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.4.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "forkcms_deploy"
8
- s.version = "2.3.0"
8
+ s.version = "2.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tijs Verkoyen", "Jan De Poorter", "Sam Tubbax"]
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  "lib/forkcms_deploy/forkcms.rb",
27
27
  "lib/forkcms_deploy/forkcms_2.rb",
28
28
  "lib/forkcms_deploy/forkcms_3.4.rb",
29
+ "lib/forkcms_deploy/forkcms_3.5.rb",
29
30
  "lib/forkcms_deploy/forkcms_3.rb",
30
31
  "lib/forkcms_deploy/forkcms_default.rb",
31
32
  "lib/forkcms_deploy/overwrites.rb",
@@ -0,0 +1,44 @@
1
+ require "forkcms_deploy/forkcms_3"
2
+ configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
3
+
4
+ configuration.load do
5
+ set :shared_children, %w(files config)
6
+
7
+ after 'deploy:update_code' do
8
+ composer.install_vendors
9
+ end
10
+
11
+ # composer specific tasks
12
+ namespace :composer do
13
+ desc 'Install the vendors'
14
+ task :install_vendors do
15
+ composer.install_composer
16
+ run %{
17
+ cd #{latest_release} &&
18
+ php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC' #{shared_path}/composer.phar install
19
+ }
20
+ end
21
+
22
+ desc 'Install composer'
23
+ task :install_composer do
24
+ run %{
25
+ if [ ! -e #{shared_path}/composer.phar ]; then cd #{shared_path}; curl -ks https://getcomposer.org/installer | php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC'; fi
26
+ }
27
+ end
28
+ end
29
+
30
+ # Fork CMS specific tasks
31
+ namespace :forkcms do
32
+ desc 'Link the config files'
33
+ task :link_configs do
34
+
35
+ # change the path to current_path
36
+ run "if [ -f #{shared_path}/config/parameters.yml ]; then sed -i 's/#{version_dir}\\/[0-9]*/#{current_dir}/' #{shared_path}/config/parameters.yml; fi"
37
+
38
+ # symlink the globals
39
+ run %{
40
+ ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml
41
+ }
42
+ end
43
+ end
44
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forkcms_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -46,6 +46,7 @@ files:
46
46
  - lib/forkcms_deploy/forkcms.rb
47
47
  - lib/forkcms_deploy/forkcms_2.rb
48
48
  - lib/forkcms_deploy/forkcms_3.4.rb
49
+ - lib/forkcms_deploy/forkcms_3.5.rb
49
50
  - lib/forkcms_deploy/forkcms_3.rb
50
51
  - lib/forkcms_deploy/forkcms_default.rb
51
52
  - lib/forkcms_deploy/overwrites.rb