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 +1 -1
- data/recipes/alpha_omega/deploy.rb +13 -11
- data/recipes/alpha_omega/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
250
|
-
|
251
|
-
|
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
|
-
|
261
|
+
run "ln -vsnf #{latest_release} #{current_path}"
|
254
262
|
end
|
255
|
-
end
|
256
263
|
|
257
|
-
|
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
|
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: 35
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 30
|
10
|
+
version: 0.0.30
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|