alpha_omega 0.0.139 → 0.0.140

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/alpha_omega/deploy.rb +8 -8
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.139
1
+ 0.0.140
@@ -283,7 +283,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
283
283
 
284
284
  task :symlink_next, :except => { :no_release => true } do
285
285
  if releases.length >= 2
286
- run "ln -vsnf #{current_release} #{next_path}"
286
+ run "ln -vnfs #{current_release} #{next_path}"
287
287
  end
288
288
  end
289
289
 
@@ -301,21 +301,21 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
301
301
  on_rollback do
302
302
  if rollback_release
303
303
  run "rm -fv #{previous_path} #{next_path}; true"
304
- run "ln -vsnf #{rollback_release} #{current_path}; true"
304
+ run "ln -vnfs #{rollback_release} #{current_path}; true"
305
305
  else
306
306
  logger.important "no previous release to rollback to, rollback of symlink skipped"
307
307
  end
308
308
  end
309
309
 
310
310
  if releases.length == 1
311
- run "ln -vsnf #{current_release} #{current_path}"
311
+ run "ln -vnfs #{current_release} #{current_path}"
312
312
  else
313
313
  run "rm -fv #{previous_path} #{next_path}"
314
- run "ln -vsnf #{current_release} #{current_path}"
314
+ run "ln -vnfs #{current_release} #{current_path}"
315
315
  if current_path != external_path
316
- run "#{File.dirname(external_path).index(deploy_to) == 0 ? "" : try_sudo} ln -vsnf #{current_path} #{external_path}"
316
+ run "#{File.dirname(external_path).index(deploy_to) == 0 ? "" : try_sudo} ln -vnfs #{current_path} #{external_path}"
317
317
  end
318
- run "ln -vsnf #{rollback_release} #{previous_path}"
318
+ run "ln -vnfs #{rollback_release} #{previous_path}"
319
319
  end
320
320
 
321
321
  system "#{figlet} -w 200 #{current_release_name} activated"
@@ -399,10 +399,10 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
399
399
  DESC
400
400
  task :revision, :except => { :no_release => true } do
401
401
  if previous_release
402
- system "#{figlet} -w 200 on #{previous_release}"
402
+ system "#{figlet} -w 200 on #{previous_release_name}"
403
403
  run "rm -fv #{previous_path} #{next_path}"
404
404
 
405
- run "ln -vsnf #{previous_release} #{current_path}"
405
+ run "ln -vnfs #{previous_release} #{current_path}"
406
406
  else
407
407
  abort "could not rollback the code because there is no prior release"
408
408
  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: 265
4
+ hash: 263
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 139
10
- version: 0.0.139
9
+ - 140
10
+ version: 0.0.140
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem