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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alpha_omega (0.0.24)
4
+ alpha_omega (0.0.25)
5
5
  HeSYINUvSBZfxqA-capistrano
6
6
  HeSYINUvSBZfxqA-capistrano_colors
7
7
  HeSYINUvSBZfxqA-capistrano_log
@@ -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} ]] || sudo install -d -m 0775 -o #{root_user} -g #{root_group} #{deploy_to}"
208
- run "sudo install -d -m 0775 -o #{user} -g #{group} #{releases_path} #{deploy_to}/log"
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} ]] || sudo ln -snf #{latest_release} #{current_path}"
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
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.24"
2
+ Version = "0.0.25"
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: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 24
10
- version: 0.0.24
9
+ - 25
10
+ version: 0.0.25
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem