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.
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.65"
2
+ Version = "0.0.66"
3
3
  end
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: 157
4
+ hash: 155
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 65
10
- version: 0.0.65
9
+ - 66
10
+ version: 0.0.66
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem