cap-chown 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,14 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
  desc "Chown all files in release to application account"
6
6
 
7
7
  task :chown do
8
+ old_sudo = sudo
9
+ set :sudo, "sudo"
8
10
  if app_user && app_group
9
11
  run "#{sudo} chown -R #{app_user}:#{app_group} #{releases_path}"
10
12
  else
11
13
  puts "WARNING: not chowning release path, because either app_user or app_group is not set!"
12
14
  end
15
+ set :sudo, old_sudo
13
16
  end
14
17
  end
15
18
  after 'deploy:cleanup', 'deploy:chown'
@@ -1,5 +1,5 @@
1
1
  module Cap
2
2
  module Chown
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-chown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: