forkcms_deploy 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be1d2e5a390b2ed0b0a32cc0c7eda8ed8df5fc34
4
- data.tar.gz: 51174a40ed7bf58b6492ae8f4073caf82161e060
3
+ metadata.gz: f563e787bc2dc53b62875cec33f9a35ff06c0666
4
+ data.tar.gz: a4209bda43f9693298c5837edac4517710832401
5
5
  SHA512:
6
- metadata.gz: 9382c7e8973207f5f5240fc2f8d3e7ec55aa706084679239696a1cfd314c0d08cc6a4d69d51b356d449ef0041a7f164c1d00ba3594de986025c252ad5ac52c14
7
- data.tar.gz: 98f45091b5d4fb212c9922ec63d0f019e8eff2403564c49111dc92e7f325c61f77485ff14b70bde75afe2798b95c1016ff0c77e59e01b62323054475a39da2e0
6
+ metadata.gz: 610005f79708e90a059023b749ba8217482511e3b523752dc7702664e70ccd2f44aa0d732d8986b4a0a2f3d28c52411c2f5e711303be08487cc1dc4b7734da83
7
+ data.tar.gz: 03b499881946352fbf402acfa9275dbda0ce2334562b6326134534f1356f862fec66bffd48d155ea1f3c51f14616c1194bb545fe3278bb38e620e69d87d652a5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.6.0
@@ -2,16 +2,14 @@
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 2.5.0 ruby lib
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = "forkcms_deploy"
9
- s.version = "2.5.0"
8
+ s.version = "2.6.0"
10
9
 
11
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
11
  s.authors = ["Tijs Verkoyen", "Jan De Poorter", "Sam Tubbax"]
14
- s.date = "2014-08-05"
12
+ s.date = "2014-12-31"
15
13
  s.description = "Deployment for ForkCMS with Capistrano"
16
14
  s.email = "info@sumocoders.be"
17
15
  s.extra_rdoc_files = [
@@ -30,13 +28,15 @@ Gem::Specification.new do |s|
30
28
  "lib/forkcms_deploy/forkcms_3.4.rb",
31
29
  "lib/forkcms_deploy/forkcms_3.5.rb",
32
30
  "lib/forkcms_deploy/forkcms_3.7.rb",
31
+ "lib/forkcms_deploy/forkcms_3.8.rb",
33
32
  "lib/forkcms_deploy/forkcms_3.rb",
34
33
  "lib/forkcms_deploy/forkcms_default.rb",
35
34
  "lib/forkcms_deploy/overwrites.rb",
36
35
  "test/test_forkcms_deploy.rb"
37
36
  ]
38
37
  s.homepage = "https://github.com/sumocoders/forkcms_deploy"
39
- s.rubygems_version = "2.2.2"
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = "2.0.2"
40
40
  s.summary = "Deployment for ForkCMS with Capistrano"
41
41
 
42
42
  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
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
@@ -7,4 +7,4 @@ rescue SystemCallError
7
7
  exit 1
8
8
  end
9
9
 
10
- require 'forkcms_deploy/overwrites'
10
+ require 'forkcms_deploy/overwrites'
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.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tijs Verkoyen
@@ -10,20 +10,20 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-05 00:00:00.000000000 Z
13
+ date: 2014-12-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - '>='
27
27
  - !ruby/object:Gem::Version
28
28
  version: 2.0.0
29
29
  description: Deployment for ForkCMS with Capistrano
@@ -45,6 +45,7 @@ files:
45
45
  - lib/forkcms_deploy/forkcms_3.4.rb
46
46
  - lib/forkcms_deploy/forkcms_3.5.rb
47
47
  - lib/forkcms_deploy/forkcms_3.7.rb
48
+ - lib/forkcms_deploy/forkcms_3.8.rb
48
49
  - lib/forkcms_deploy/forkcms_3.rb
49
50
  - lib/forkcms_deploy/forkcms_default.rb
50
51
  - lib/forkcms_deploy/overwrites.rb
@@ -58,17 +59,17 @@ require_paths:
58
59
  - lib
59
60
  required_ruby_version: !ruby/object:Gem::Requirement
60
61
  requirements:
61
- - - ">="
62
+ - - '>='
62
63
  - !ruby/object:Gem::Version
63
64
  version: '0'
64
65
  required_rubygems_version: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - ">="
67
+ - - '>='
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
69
70
  requirements: []
70
71
  rubyforge_project:
71
- rubygems_version: 2.2.2
72
+ rubygems_version: 2.0.2
72
73
  signing_key:
73
74
  specification_version: 4
74
75
  summary: Deployment for ForkCMS with Capistrano