forkcms_deploy 2.4.2 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/VERSION +1 -1
- data/forkcms_deploy.gemspec +7 -5
- data/lib/forkcms_deploy/forkcms_3.7.rb +88 -0
- metadata +10 -13
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: be1d2e5a390b2ed0b0a32cc0c7eda8ed8df5fc34
|
4
|
+
data.tar.gz: 51174a40ed7bf58b6492ae8f4073caf82161e060
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9382c7e8973207f5f5240fc2f8d3e7ec55aa706084679239696a1cfd314c0d08cc6a4d69d51b356d449ef0041a7f164c1d00ba3594de986025c252ad5ac52c14
|
7
|
+
data.tar.gz: 98f45091b5d4fb212c9922ec63d0f019e8eff2403564c49111dc92e7f325c61f77485ff14b70bde75afe2798b95c1016ff0c77e59e01b62323054475a39da2e0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.0
|
data/forkcms_deploy.gemspec
CHANGED
@@ -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 2.5.0 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "forkcms_deploy"
|
8
|
-
s.version = "2.
|
9
|
+
s.version = "2.5.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"]
|
12
|
-
s.date = "
|
14
|
+
s.date = "2014-08-05"
|
13
15
|
s.description = "Deployment for ForkCMS with Capistrano"
|
14
16
|
s.email = "info@sumocoders.be"
|
15
17
|
s.extra_rdoc_files = [
|
@@ -27,18 +29,18 @@ Gem::Specification.new do |s|
|
|
27
29
|
"lib/forkcms_deploy/forkcms_2.rb",
|
28
30
|
"lib/forkcms_deploy/forkcms_3.4.rb",
|
29
31
|
"lib/forkcms_deploy/forkcms_3.5.rb",
|
32
|
+
"lib/forkcms_deploy/forkcms_3.7.rb",
|
30
33
|
"lib/forkcms_deploy/forkcms_3.rb",
|
31
34
|
"lib/forkcms_deploy/forkcms_default.rb",
|
32
35
|
"lib/forkcms_deploy/overwrites.rb",
|
33
36
|
"test/test_forkcms_deploy.rb"
|
34
37
|
]
|
35
38
|
s.homepage = "https://github.com/sumocoders/forkcms_deploy"
|
36
|
-
s.
|
37
|
-
s.rubygems_version = "1.8.25"
|
39
|
+
s.rubygems_version = "2.2.2"
|
38
40
|
s.summary = "Deployment for ForkCMS with Capistrano"
|
39
41
|
|
40
42
|
if s.respond_to? :specification_version then
|
41
|
-
s.specification_version =
|
43
|
+
s.specification_version = 4
|
42
44
|
|
43
45
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
46
|
s.add_runtime_dependency(%q<capistrano>, [">= 2.0.0"])
|
@@ -0,0 +1,88 @@
|
|
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
|
+
run "if [ ! -f #{shared_path}/install/installed.txt ]; then touch #{shared_path}/install/installed.txt; fi"
|
38
|
+
|
39
|
+
# symlink the parameters
|
40
|
+
run %{
|
41
|
+
ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml &&
|
42
|
+
ln -sf #{shared_path}/install/installed.txt #{release_path}/src/Install/Cache/installed.txt
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
desc 'Clear the frontend and backend cache-folders'
|
47
|
+
task :clear_cached do
|
48
|
+
# remove frontend cached data
|
49
|
+
run %{
|
50
|
+
rm -rf #{current_path}/src/Frontend/Cache/CachedTemplates/* &&
|
51
|
+
rm -rf #{current_path}/src/Frontend/Cache/CompiledTemplates/* &&
|
52
|
+
rm -rf #{current_path}/src/Frontend/Cache/Locale/* &&
|
53
|
+
rm -rf #{current_path}/src/Frontend/Cache/MinifiedCss/* &&
|
54
|
+
rm -rf #{current_path}/src/Frontend/Cache/MinifiedJs/* &&
|
55
|
+
rm -rf #{current_path}/src/Frontend/Cache/Navigation/* &&
|
56
|
+
rm -rf #{current_path}/src/Frontend/Cache/Search/*
|
57
|
+
}
|
58
|
+
|
59
|
+
# remove backend cached data
|
60
|
+
run %{
|
61
|
+
rm -rf #{current_path}/src/Backend/Cache/Analytics/* &&
|
62
|
+
rm -rf #{current_path}/src/Backend/Cache/Cronjobs/* &&
|
63
|
+
rm -rf #{current_path}/src/Backend/Cache/Locale/* &&
|
64
|
+
rm -rf #{current_path}/src/Backend/Cache/Mailmotor/* &&
|
65
|
+
rm -rf #{current_path}/src/Backend/Cache/MinifiedCss/* &&
|
66
|
+
rm -rf #{current_path}/src/Backend/Cache/MinifiedJs/* &&
|
67
|
+
rm -rf #{current_path}/src/Backend/Cache/CompiledTemplates/*
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
desc 'Create needed symlinks'
|
72
|
+
task :link_files do
|
73
|
+
# get the list of folders in /frontend/files
|
74
|
+
folders = capture("ls -1 #{release_path}/src/Frontend/Files").split(/\r?\n/)
|
75
|
+
|
76
|
+
# loop the folders
|
77
|
+
folders.each do |folder|
|
78
|
+
# copy them to the shared path, remove them from the release and symlink them
|
79
|
+
run %{
|
80
|
+
mkdir -p #{shared_path}/files/#{folder} &&
|
81
|
+
cp -r #{release_path}/src/Frontend/Files/#{folder} #{shared_path}/files/ &&
|
82
|
+
rm -rf #{release_path}/src/Frontend/Files/#{folder} &&
|
83
|
+
ln -s #{shared_path}/files/#{folder} #{release_path}/src/Frontend/Files/#{folder}
|
84
|
+
}
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forkcms_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.5.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tijs Verkoyen
|
@@ -11,22 +10,20 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: capistrano
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - ">="
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: 2.0.0
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - ">="
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: 2.0.0
|
32
29
|
description: Deployment for ForkCMS with Capistrano
|
@@ -47,32 +44,32 @@ files:
|
|
47
44
|
- lib/forkcms_deploy/forkcms_2.rb
|
48
45
|
- lib/forkcms_deploy/forkcms_3.4.rb
|
49
46
|
- lib/forkcms_deploy/forkcms_3.5.rb
|
47
|
+
- lib/forkcms_deploy/forkcms_3.7.rb
|
50
48
|
- lib/forkcms_deploy/forkcms_3.rb
|
51
49
|
- lib/forkcms_deploy/forkcms_default.rb
|
52
50
|
- lib/forkcms_deploy/overwrites.rb
|
53
51
|
- test/test_forkcms_deploy.rb
|
54
52
|
homepage: https://github.com/sumocoders/forkcms_deploy
|
55
53
|
licenses: []
|
54
|
+
metadata: {}
|
56
55
|
post_install_message:
|
57
56
|
rdoc_options: []
|
58
57
|
require_paths:
|
59
58
|
- lib
|
60
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
60
|
requirements:
|
63
|
-
- -
|
61
|
+
- - ">="
|
64
62
|
- !ruby/object:Gem::Version
|
65
63
|
version: '0'
|
66
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
65
|
requirements:
|
69
|
-
- -
|
66
|
+
- - ">="
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '0'
|
72
69
|
requirements: []
|
73
70
|
rubyforge_project:
|
74
|
-
rubygems_version:
|
71
|
+
rubygems_version: 2.2.2
|
75
72
|
signing_key:
|
76
|
-
specification_version:
|
73
|
+
specification_version: 4
|
77
74
|
summary: Deployment for ForkCMS with Capistrano
|
78
75
|
test_files: []
|