alpha_omega 0.0.135 → 0.0.136

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 +11 -11
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.135
1
+ 0.0.136
@@ -80,7 +80,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
80
80
  ""
81
81
  end
82
82
  }
83
- _cset(:release_name) {
83
+ _cset(:current_release_path) {
84
84
  if releases.length > 0
85
85
  w = current_workarea
86
86
  stage = releases[((releases.index(w)?releases.index(w):-1)+1)%releases.length]
@@ -109,7 +109,6 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
109
109
 
110
110
 
111
111
  _cset(:releases_path) { File.join(deploy_to, releases_dir) }
112
- _cset(:release_path) { File.join(releases_path, release_name) }
113
112
  _cset(:previous_path) { File.join(deploy_to, previous_dir) }
114
113
  _cset(:current_path) { File.join(deploy_to, current_dir) }
115
114
  _cset(:external_path) { current_path }
@@ -118,11 +117,11 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
118
117
  _cset(:service_drop) { File.join(deploy_to, ".#{service_dir}.d") }
119
118
  _cset(:log_path) { File.join(deploy_to, log_dir) }
120
119
 
121
- _cset(:rollback_revision) { capture("cat #{rollback_release}/REVISION", :except => { :no_release => true }).chomp if rollback_release }
122
- _cset(:previous_revision) { capture("cat #{previous_release}/REVISION", :except => { :no_release => true }).chomp if previous_release }
123
- _cset(:current_revision) { capture("cat #{current_path}/REVISION", :except => { :no_release => true }).chomp }
124
- _cset(:next_revision) { capture("cat #{next_release}/REVISION", :except => { :no_release => true }).chomp if next_release }
125
- _cset(:latest_revision) { capture("cat #{current_release}/REVISION", :except => { :no_release => true }).chomp }
120
+ _cset(:rollback_revision) { capture("cat #{rollback_release}/REVISION", :except => { :no_release => true }).strip }
121
+ _cset(:previous_revision) { capture("cat #{previous_release}/REVISION", :except => { :no_release => true }).strip }
122
+ _cset(:current_revision) { capture("cat #{current_path}/REVISION", :except => { :no_release => true }).strip }
123
+ _cset(:next_revision) { capture("cat #{next_release}/REVISION", :except => { :no_release => true }).strip }
124
+ _cset(:latest_revision) { capture("cat #{current_release}/REVISION", :except => { :no_release => true }).strip }
126
125
 
127
126
  _cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run }
128
127
 
@@ -135,11 +134,12 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
135
134
  # standalone case, or during deployment.
136
135
  #
137
136
  # with persistent releases, the latest release is always the current release
138
- _cset(:rollback_release) { rollback_release_path }
139
- _cset(:previous_release) { previous_release_path }
140
- _cset(:current_release) { release_path }
141
- _cset(:next_release) { next_release_path }
137
+
138
+ _cset(:rollback_release) { File.join(releases_path, rollback_release_path) }
139
+ _cset(:previous_release) { File.join(releases_path, previous_release_path) }
140
+ _cset(:current_release) { File.join(releases_path, current_release_path) }
142
141
  _cset(:latest_release) { current_release }
142
+ _cset(:next_release) { File.join(releases_path, next_release_path) }
143
143
 
144
144
  # =========================================================================
145
145
  # deploy:lock defaults
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: 273
4
+ hash: 271
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 135
10
- version: 0.0.135
9
+ - 136
10
+ version: 0.0.136
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem