forkcms_deploy 2.7.1 → 4.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aadc6e3ac2f03d11efcc44bd52b1b6355e2eef0
4
- data.tar.gz: 801f6fa651dabf2719c5792bde9e4f03d924485e
3
+ metadata.gz: 4b8f17451374927d94a03a451fb79ae1b5d57558
4
+ data.tar.gz: 58825c254d15bc8b221b9907c0ef496ac601b46f
5
5
  SHA512:
6
- metadata.gz: 7f20470996af0c9bf103bc54bf0a6acd4678a908da47469a2d13c7f7b570ef00be57604b72b82e00178951fef1cb3dc895503f70088ae4c01d1b988352970e2c
7
- data.tar.gz: 4d5f5bee61df5579f87a0690cf8ab2ab9f9023975daca9e1733424455729df947e1e961f6585efe1d359d7911b2f245752669dbd8cdb4eb64d7451ca98114673
6
+ metadata.gz: c2f4d4345e3e16da7c74206c6926a0475d6b4953795368bba073669979d681f8437b6f483c651c23f679a0fae90c1527e6318a19933c80b769734278ae5a2374
7
+ data.tar.gz: b458d7e3670bc091449d967e52acd4eaa15c67d7762c4cb8677b042ef8d104f767f0b66ad9924daae1c7b256bb80f2b1e6105bf2192d569118bb555ecdc67a75
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.7.1
1
+ 4.0.0
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: forkcms_deploy 4.0.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "forkcms_deploy"
8
- s.version = "2.7.1"
9
+ s.version = "4.0.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Tijs Verkoyen", "Jan De Poorter", "Sam Tubbax", "Wouter Sioen"]
12
- s.date = "2016-02-15"
14
+ s.date = "2016-06-14"
13
15
  s.description = "Deployment for ForkCMS with Capistrano"
14
16
  s.email = "info@sumocoders.be"
15
17
  s.extra_rdoc_files = [
@@ -29,6 +31,7 @@ Gem::Specification.new do |s|
29
31
  "lib/forkcms_deploy/forkcms_3.7.rb",
30
32
  "lib/forkcms_deploy/forkcms_3.8.rb",
31
33
  "lib/forkcms_deploy/forkcms_3.rb",
34
+ "lib/forkcms_deploy/forkcms_4.rb",
32
35
  "lib/forkcms_deploy/forkcms_default.rb",
33
36
  "lib/forkcms_deploy/overwrites.rb",
34
37
  "lib/maintenance/.htaccess",
@@ -37,8 +40,7 @@ Gem::Specification.new do |s|
37
40
  ]
38
41
  s.homepage = "https://github.com/sumocoders/forkcms_deploy"
39
42
  s.licenses = ["MIT"]
40
- s.require_paths = ["lib"]
41
- s.rubygems_version = "2.0.14"
43
+ s.rubygems_version = "2.5.1"
42
44
  s.summary = "Deployment for ForkCMS with Capistrano"
43
45
 
44
46
  if s.respond_to? :specification_version then
@@ -0,0 +1,86 @@
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 install)
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 -o
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 parameters
39
+ run %{
40
+ ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml
41
+ }
42
+ end
43
+
44
+ desc 'Clear the frontend and backend cache-folders'
45
+ task :clear_cached do
46
+ # remove frontend cached data
47
+ run %{
48
+ rm -rf #{current_path}/src/Frontend/Cache/CachedTemplates/* &&
49
+ rm -rf #{current_path}/src/Frontend/Cache/CompiledTemplates/* &&
50
+ rm -rf #{current_path}/src/Frontend/Cache/Locale/* &&
51
+ rm -rf #{current_path}/src/Frontend/Cache/MinifiedCss/* &&
52
+ rm -rf #{current_path}/src/Frontend/Cache/MinifiedJs/* &&
53
+ rm -rf #{current_path}/src/Frontend/Cache/Navigation/* &&
54
+ rm -rf #{current_path}/src/Frontend/Cache/Search/*
55
+ }
56
+
57
+ # remove backend cached data
58
+ run %{
59
+ rm -rf #{current_path}/src/Backend/Cache/Analytics/* &&
60
+ rm -rf #{current_path}/src/Backend/Cache/Cronjobs/* &&
61
+ rm -rf #{current_path}/src/Backend/Cache/Locale/* &&
62
+ rm -rf #{current_path}/src/Backend/Cache/Mailmotor/* &&
63
+ rm -rf #{current_path}/src/Backend/Cache/MinifiedCss/* &&
64
+ rm -rf #{current_path}/src/Backend/Cache/MinifiedJs/* &&
65
+ rm -rf #{current_path}/src/Backend/Cache/CompiledTemplates/*
66
+ }
67
+ end
68
+
69
+ desc 'Create needed symlinks'
70
+ task :link_files do
71
+ # get the list of folders in /frontend/files
72
+ folders = capture("ls -1 #{release_path}/src/Frontend/Files").split(/\r?\n/)
73
+
74
+ # loop the folders
75
+ folders.each do |folder|
76
+ # copy them to the shared path, remove them from the release and symlink them
77
+ run %{
78
+ mkdir -p #{shared_path}/files/#{folder} &&
79
+ cp -r #{release_path}/src/Frontend/Files/#{folder} #{shared_path}/files/ &&
80
+ rm -rf #{release_path}/src/Frontend/Files/#{folder} &&
81
+ ln -s #{shared_path}/files/#{folder} #{release_path}/src/Frontend/Files/#{folder}
82
+ }
83
+ end
84
+ end
85
+ end
86
+ 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.7.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tijs Verkoyen
@@ -11,20 +11,20 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-15 00:00:00.000000000 Z
14
+ date: 2016-06-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: capistrano
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.0.0
30
30
  description: Deployment for ForkCMS with Capistrano
@@ -47,6 +47,7 @@ files:
47
47
  - lib/forkcms_deploy/forkcms_3.7.rb
48
48
  - lib/forkcms_deploy/forkcms_3.8.rb
49
49
  - lib/forkcms_deploy/forkcms_3.rb
50
+ - lib/forkcms_deploy/forkcms_4.rb
50
51
  - lib/forkcms_deploy/forkcms_default.rb
51
52
  - lib/forkcms_deploy/overwrites.rb
52
53
  - lib/maintenance/.htaccess
@@ -62,17 +63,17 @@ require_paths:
62
63
  - lib
63
64
  required_ruby_version: !ruby/object:Gem::Requirement
64
65
  requirements:
65
- - - '>='
66
+ - - ">="
66
67
  - !ruby/object:Gem::Version
67
68
  version: '0'
68
69
  required_rubygems_version: !ruby/object:Gem::Requirement
69
70
  requirements:
70
- - - '>='
71
+ - - ">="
71
72
  - !ruby/object:Gem::Version
72
73
  version: '0'
73
74
  requirements: []
74
75
  rubyforge_project:
75
- rubygems_version: 2.0.14
76
+ rubygems_version: 2.5.1
76
77
  signing_key:
77
78
  specification_version: 4
78
79
  summary: Deployment for ForkCMS with Capistrano