alpha_omega 0.0.24 → 0.0.25
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 +3 -3
- data/recipes/alpha_omega/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -204,8 +204,8 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
204
204
|
|
205
205
|
task :bootstrap_code, :except => { :no_release => true } do
|
206
206
|
if releases.length == 1 # without services and run as root
|
207
|
-
run "[[ -d #{deploy_to} ]] ||
|
208
|
-
run "
|
207
|
+
run "[[ -d #{deploy_to} ]] || #{try_sudo} install -d -m 0775 -o #{root_user} -g #{root_group} #{deploy_to}"
|
208
|
+
run "#{try_sudo} install -d -m 0775 -o #{user} -g #{group} #{releases_path} #{deploy_to}/log"
|
209
209
|
else
|
210
210
|
dirs = [ releases_path, service_path, "#{deploy_to}/log" ]
|
211
211
|
dir_args = dirs.map {|d| d.sub("#{deploy_to}/", "") }.join(' ')
|
@@ -245,7 +245,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
245
245
|
end
|
246
246
|
|
247
247
|
if releases.length == 1
|
248
|
-
run "[[ $(readlink #{current_path} 2>&-) = #{latest_release} ]] ||
|
248
|
+
run "[[ $(readlink #{current_path} 2>&-) = #{latest_release} ]] || #{try_sudo} ln -snf #{latest_release} #{current_path}"
|
249
249
|
else
|
250
250
|
run "ln -snf #{latest_release} #{current_path}"
|
251
251
|
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:
|
4
|
+
hash: 45
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 25
|
10
|
+
version: 0.0.25
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|