alpha_omega 0.0.65 → 0.0.66
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/alpha_omega/deploy.rb +2 -2
- data/lib/alpha_omega/version.rb +1 -1
- metadata +3 -3
data/lib/alpha_omega/deploy.rb
CHANGED
@@ -271,7 +271,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
271
271
|
if releases.length > 0
|
272
272
|
on_rollback do
|
273
273
|
if previous_release
|
274
|
-
run "ln -vsnf #{previous_release} #{current_path}; true"
|
274
|
+
run "#{File.dirname(current_path).index(deploy_to) == 0 ? "" : try_sudo} ln -vsnf #{previous_release} #{current_path}; true"
|
275
275
|
else
|
276
276
|
logger.important "no previous release to rollback to, rollback of symlink skipped"
|
277
277
|
end
|
@@ -280,7 +280,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
280
280
|
if releases.length == 1
|
281
281
|
run "[[ $(readlink #{current_path} 2>&-) = #{latest_release} ]] || #{try_sudo} ln -vsnf #{latest_release} #{current_path}"
|
282
282
|
else
|
283
|
-
run "ln -vsnf #{latest_release} #{current_path}"
|
283
|
+
run "#{File.dirname(current_path).index(deploy_to) == 0 ? "" : try_sudo} ln -vsnf #{latest_release} #{current_path}"
|
284
284
|
end
|
285
285
|
|
286
286
|
system "#{figlet} -w 200 #{release_name} activated"
|
data/lib/alpha_omega/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alpha_omega
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 155
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 66
|
10
|
+
version: 0.0.66
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|