fork_legacy_deploy 0.1.4 → 0.2.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fork_legacy_deploy"
8
- s.version = "0.1.4"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sam Tubbax", "Tijs Verkoyen", "Jan De Poorter"]
12
- s.date = "2011-09-22"
12
+ s.date = "2011-10-21"
13
13
  s.description = "Deploy old versions of fork CMS. Specifically the one that says 'Copyright 2006', no idea what version it is"
14
14
  s.email = "sam@sumocoders.be"
15
15
  s.extra_rdoc_files = [
@@ -31,27 +31,27 @@ configuration.load do
31
31
  desc 'link the document root to the current/default_www-folder'
32
32
  task :link_document_root do
33
33
  # create symlink for document_root if it doesn't exists
34
- documentRootExists = capture("if [ ! -e #{document_root} ]; then ln -sf #{current_path}/public #{document_root}; echo 'no'; fi").chomp
34
+ documentRootExists = capture("if [ ! -e #{document_root} ]; then ln -sf #{current_path}/default_www #{document_root}; echo 'no'; fi").chomp
35
35
 
36
36
  unless documentRootExists == 'no'
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
- warn " ln -sf #{current_path}/public #{document_root}"
39
+ warn " ln -sf #{current_path}/default_www #{document_root}"
40
40
  end
41
41
  end
42
42
 
43
43
  desc 'Create needed symlinks'
44
44
  task :link_files do
45
45
  # get the list of folders in /frontend/files
46
- folders = capture("ls -1 #{release_path}/public/userfiles").split(/\r?\n/)
46
+ folders = capture("ls -1 #{release_path}/default_www/userfiles").split(/\r?\n/)
47
47
 
48
48
  # loop the folders
49
49
  folders.each do |folder|
50
50
  # copy them to the shared path, remove them from the release and symlink them
51
51
  run %{
52
- cp -r #{release_path}/public/userfiles/#{folder} #{shared_path}/files/#{folder} &&
53
- rm -rf #{release_path}/public/userfiles/#{folder} &&
54
- ln -s #{shared_path}/files/#{folder} #{release_path}/public/userfiles/#{folder}
52
+ cp -r #{release_path}/default_www/userfiles/#{folder} #{shared_path}/files/#{folder} &&
53
+ rm -rf #{release_path}/default_www/userfiles/#{folder} &&
54
+ ln -s #{shared_path}/files/#{folder} #{release_path}/default_www/userfiles/#{folder}
55
55
  }
56
56
  end
57
57
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fork_legacy_deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 4
10
- version: 0.1.4
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Tubbax
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-09-22 00:00:00 Z
20
+ date: 2011-10-21 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  version_requirements: &id001 !ruby/object:Gem::Requirement