capistrano-forkcms 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/forkcms/defaults.rb +2 -1
- data/lib/capistrano/forkcms/version.rb +1 -1
- data/lib/capistrano/tasks/symlink.rake +26 -0
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a23fb8bb6b3d6ed250039d7ebaf7e6ded8fc72d9
|
4
|
+
data.tar.gz: 7274c9074a95a70e9659615f487d9b096b5abba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ceffa3e7a47dd7948ff47c3e8e5b5acf307714e93d51b4085876f8e7cf410554dbfcef394e9bcc4cc23c76ef37a113c1b3932e8be3a12c663d6ffd16cc026f
|
7
|
+
data.tar.gz: 3a393a90367f9f15e44942b2661a492814998cfcca56ae6289af3387d09dcac3cd88169ccd5321db4d0bc20d397e4bbc06d2674c98b0e469f3b416d18883dd09
|
@@ -2,7 +2,7 @@
|
|
2
2
|
set :linked_files, []
|
3
3
|
set :linked_files, %w(app/config/parameters.yml)
|
4
4
|
set :linked_dirs, []
|
5
|
-
set :linked_dirs, %w(app/logs app/sessions
|
5
|
+
set :linked_dirs, %w(app/logs app/sessions)
|
6
6
|
|
7
7
|
# Run required tasks after the stage
|
8
8
|
Capistrano::DSL.stages.each do |stage|
|
@@ -16,6 +16,7 @@ namespace :deploy do
|
|
16
16
|
after :starting, 'composer:install_executable'
|
17
17
|
after :starting, 'cachetool:install_executable'
|
18
18
|
after :publishing, 'forkcms:symlink:document_root'
|
19
|
+
after :publishing, 'forkcms:symlink:frontend_files'
|
19
20
|
after :publishing, 'forkcms:opcache:reset'
|
20
21
|
after :updated, 'forkcms:migrations:execute'
|
21
22
|
before :reverted, 'forkcms:migrations:rollback'
|
@@ -18,5 +18,31 @@ namespace :forkcms do
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
|
+
desc <<-DESC
|
22
|
+
Links the frontend files folders to their shared counterparts.
|
23
|
+
It copies the contents of the git folders to the shared folder so you can add files through git.
|
24
|
+
DESC
|
25
|
+
task :frontend_files do
|
26
|
+
on roles(:web) do
|
27
|
+
# get the list of folders in the frontend files
|
28
|
+
folders = get_frontend_files_folders()
|
29
|
+
|
30
|
+
# loop the folders
|
31
|
+
folders.each do |folder|
|
32
|
+
# create the shared folder if it doesn't exist
|
33
|
+
execute :mkdir, '-p', "#{shared_path}/files/#{folder}"
|
34
|
+
# copy the contents of the release folder to the shared folder, allowing for adding new files through git
|
35
|
+
execute :cp, '-r', "#{release_path}/src/Frontend/Files/#{folder}", "#{shared_path}/files/"
|
36
|
+
# remove them from the release folder
|
37
|
+
execute :rm, '-rf', "#{release_path}/src/Frontend/Files/#{folder}"
|
38
|
+
# create a symlink to the shared folder
|
39
|
+
execute :ln, '-s', "#{shared_path}/files/#{folder}", "#{release_path}/src/Frontend/Files/#{folder}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def get_frontend_files_folders
|
45
|
+
return capture("if [ -e #{release_path}/src/Frontend/Files ]; then ls -1 #{release_path}/src/Frontend/Files; fi").split(/\r?\n/)
|
46
|
+
end
|
21
47
|
end
|
22
48
|
end
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-forkcms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.14'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: capistrano
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.8'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.8'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capistrano-composer
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.0.6
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.0.6
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: capistrano-cachetool
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.0'
|
97
97
|
description: Capistrano ForkCMS - Easy deployment of ForkCMS 5+ apps with Ruby over
|
@@ -102,9 +102,9 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- .gitignore
|
106
|
-
- .rspec
|
107
|
-
- .travis.yml
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".travis.yml"
|
108
108
|
- Gemfile
|
109
109
|
- LICENSE.md
|
110
110
|
- README.md
|
@@ -132,17 +132,17 @@ require_paths:
|
|
132
132
|
- lib
|
133
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- -
|
135
|
+
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
|
-
- -
|
140
|
+
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.6.14
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Fork CMS specific Capistrano tasks
|