alpha_omega 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alpha_omega (0.0.29)
4
+ alpha_omega (0.0.30)
5
5
  HeSYINUvSBZfxqA-capistrano
6
6
  HeSYINUvSBZfxqA-capistrano_colors
7
7
  HeSYINUvSBZfxqA-capistrano_log
@@ -246,21 +246,23 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
246
246
  except `restart').
247
247
  DESC
248
248
  task :symlink, :except => { :no_release => true } do
249
- on_rollback do
250
- if previous_release
251
- run "ln -vsnf #{previous_release} #{current_path}; true"
249
+ if releases.length > 0
250
+ on_rollback do
251
+ if previous_release
252
+ run "ln -vsnf #{previous_release} #{current_path}; true"
253
+ else
254
+ logger.important "no previous release to rollback to, rollback of symlink skipped"
255
+ end
256
+ end
257
+
258
+ if releases.length == 1
259
+ run "[[ $(readlink #{current_path} 2>&-) = #{latest_release} ]] || #{try_sudo} ln -vsnf #{latest_release} #{current_path}"
252
260
  else
253
- logger.important "no previous release to rollback to, rollback of symlink skipped"
261
+ run "ln -vsnf #{latest_release} #{current_path}"
254
262
  end
255
- end
256
263
 
257
- if releases.length < 2
258
- run "[[ $(readlink #{current_path} 2>&-) = #{latest_release} ]] || #{try_sudo} ln -vsnf #{latest_release} #{current_path}"
259
- else
260
- run "ln -vsnf #{latest_release} #{current_path}"
264
+ system "figlet -w 200 #{release_name} activated"
261
265
  end
262
-
263
- system "figlet -w 200 #{release_name} activated"
264
266
  end
265
267
 
266
268
  desc <<-DESC
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.29"
2
+ Version = "0.0.30"
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: 37
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 29
10
- version: 0.0.29
9
+ - 30
10
+ version: 0.0.30
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem