forkcms_deploy 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/forkcms_deploy.gemspec +2 -2
- data/lib/forkcms_deploy/forkcms_default.rb +18 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
data/forkcms_deploy.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "forkcms_deploy"
|
8
|
-
s.version = "2.
|
8
|
+
s.version = "2.3.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"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-01-05"
|
13
13
|
s.description = "Deployment for ForkCMS with Capistrano"
|
14
14
|
s.email = "info@sumocoders.be"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -21,10 +21,10 @@ configuration.load do
|
|
21
21
|
|
22
22
|
# change the path to current_path
|
23
23
|
run "if [ -f #{shared_path}/config/library/globals.php ]; then sed -i 's/#{version_dir}\\/[0-9]*/#{current_dir}/' #{shared_path}/config/library/globals.php; fi"
|
24
|
-
|
24
|
+
|
25
25
|
# symlink the globals
|
26
26
|
run %{
|
27
|
-
ln -sf #{shared_path}/config/library/globals.php #{release_path}/library/globals.php
|
27
|
+
ln -sf #{shared_path}/config/library/globals.php #{release_path}/library/globals.php
|
28
28
|
}
|
29
29
|
end
|
30
30
|
|
@@ -37,8 +37,8 @@ configuration.load do
|
|
37
37
|
warn "Warning: Document root (#{document_root}) already exists"
|
38
38
|
warn "to link it to the Fork deploy issue the following command:"
|
39
39
|
warn " ln -sf #{current_path}/default_www #{document_root}"
|
40
|
-
end
|
41
|
-
end
|
40
|
+
end
|
41
|
+
end
|
42
42
|
|
43
43
|
desc 'Create needed symlinks'
|
44
44
|
task :link_files do
|
@@ -54,6 +54,19 @@ configuration.load do
|
|
54
54
|
ln -s #{shared_path}/files/#{folder} #{release_path}/default_www/userfiles/#{folder}
|
55
55
|
}
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
|
+
# get the list of folders in /frontend/files
|
59
|
+
folders = capture("ls -1 #{release_path}/default_www/modulefiles").split(/\r?\n/)
|
60
|
+
|
61
|
+
# loop the folders
|
62
|
+
folders.each do |folder|
|
63
|
+
# copy them to the shared path, remove them from the release and symlink them
|
64
|
+
run %{
|
65
|
+
cp -r #{release_path}/default_www/modulefiles/#{folder} #{shared_path}/files/#{folder} &&
|
66
|
+
rm -rf #{release_path}/default_www/modulefiles/#{folder} &&
|
67
|
+
ln -s #{shared_path}/files/#{folder} #{release_path}/default_www/modulefiles/#{folder}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
58
71
|
end
|
59
72
|
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.
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-01-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: capistrano
|