capistrano-gridserver 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/capistrano-gridserver.gemspec +1 -1
- data/lib/capistrano/tasks/gridserver.rake +9 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 08ca29c68898978e19e5b7f663fd4ed15bc1a216
|
|
4
|
+
data.tar.gz: 3ac8e6fedd4d367d5d2e0a1bdd5f1593a9c51387
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ca81cbf75ded253700685a018bd40a6119af393d2372cc4cc2fd0205bf569dcf40b2b5f37093d07916b6677b1866ce9bc4922e5b9f23daa98b39bb8abaa0d12
|
|
7
|
+
data.tar.gz: 75c713b371247ce1eed9b474d6d423b59dc4ecb056c87b87aa1213b1932ef19c1d2dd3295d85b2ed9ceb7794c040323b55a5c49d382e147909e780cc0ca6b086
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'capistrano-gridserver'
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.3'
|
|
8
8
|
spec.authors = ['Craig Morris']
|
|
9
9
|
spec.email = ['craig.michael.morris@gmail.com']
|
|
10
10
|
spec.description = %q{Fixes issues related to using Capistrano with MediaTemple's grid server}
|
|
@@ -8,25 +8,25 @@ namespace :gridserver do
|
|
|
8
8
|
|
|
9
9
|
# Only change current symlink if NEW deploy
|
|
10
10
|
unless release_path == current_path
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
info "Removing absolute current symlink"
|
|
12
|
+
execute "rm -d #{current_path}"
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
info "Creating relative current symlink"
|
|
15
|
+
execute "cd #{fetch(:deploy_to)} && ln -s ./releases/#{File.basename release_path} current"
|
|
16
|
+
end
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
info "Removing absolute linked_dirs"
|
|
18
|
+
# Always recreate the linked_dirs
|
|
19
|
+
info "Removing absolute linked_dirs and creating relative linked_dirs"
|
|
20
20
|
next unless any? :linked_dirs
|
|
21
21
|
on release_roles :all do
|
|
22
22
|
fetch(:linked_dirs).each do |dir|
|
|
23
23
|
target = release_path.join(dir)
|
|
24
24
|
source = shared_path.join(dir)
|
|
25
|
-
|
|
25
|
+
relative = Pathname.new('../' * (dir.count('/') + 2)).join('shared').join(dir) # 2 for releases/timestamp
|
|
26
26
|
if test "[ -d #{target} ]"
|
|
27
27
|
execute :rm, '-rf', target
|
|
28
28
|
end
|
|
29
|
-
execute :ln, '-s',
|
|
29
|
+
execute :ln, '-s', relative, target
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-gridserver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Craig Morris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|