cap-chown 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Cap
2
2
  module Chown
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/lib/cap-chown.rb CHANGED
@@ -10,7 +10,7 @@ Capistrano::Configuration.instance(:must_exist).load do
10
10
  if app_user && app_group
11
11
  run "#{sudo} chown -R #{app_user}:#{app_group} #{releases_path}"
12
12
  else
13
- puts "WARNING: not chowning release path, because either app_user or app_group is not set!"
13
+ run "#{sudo} chown -R --reference=#{deploy_to} #{releases_path}"
14
14
  end
15
15
  set :sudo, old_sudo
16
16
  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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-14 00:00:00.000000000 Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano