capistrano-secure-permissions 0.4.0 → 0.5.0
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/capistrano-secure-permissions.gemspec +3 -3
- data/lib/capistrano/tasks/secure-permissions.rake +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b069c6664b551ed94e521c602a999c7e5f690fc
|
4
|
+
data.tar.gz: 957052ccd4f3d48c96dd5e9037ca7b70b351a8b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9239528ae63b367cd6bf0b78b67d1254046dfa7179e86f2c6d8cab1ef53c89ca8f950d08a57a948a99963b9e52ecfa97b392e9c2b12e14225ba12f4cab0dd012
|
7
|
+
data.tar.gz: 4a51f89077bddb0f6e418844644170f77d72f1686003728366b7f6febc22565f838a80f2ba158bb5e831cdac9ed842512b4ca348d196535fa440c967007dbc79
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: capistrano-secure-permissions 0.
|
5
|
+
# stub: capistrano-secure-permissions 0.5.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capistrano-secure-permissions"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.5.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Rune Schjellerup Philosof"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2016-02-23"
|
15
15
|
s.description = "This gem makes it easy to run your app with a user that only has write permissions to the public folder"
|
16
16
|
s.email = "rune.capistrano-secure-permissions@philosof.dk"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -9,13 +9,13 @@ namespace :deploy do
|
|
9
9
|
# Set parent folders accessable by web_user.
|
10
10
|
execute :setfacl, "-m", "u:#{web_user}:x", "#{release_path}", "#{shared_path}", "#{shared_path}/public"
|
11
11
|
# Set all except public, tmp, and log readable by app_user.
|
12
|
-
execute :find, release_path, '-regex', '\./\(public\|tmp\|log\)', '-prune', '-o', '-user', deploy_user, '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{app_user}:rX"
|
12
|
+
execute :find, release_path, '-regex', '\./\(public\|tmp\|log\)', '-prune', '-o', '-user', deploy_user, '-print0', '|', 'xargs', '-0', '--no-run-if-empty', 'setfacl', '-m', "u:#{app_user}:rX"
|
13
13
|
# Set permissions for files in public, readable på web_user and writable by app_user.
|
14
|
-
execute :find, '-L', "#{release_path}/public", '-user', deploy_user, '-not', '-type', 'l', '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{web_user}:rX,u:#{app_user}:rwX"
|
14
|
+
execute :find, '-L', "#{release_path}/public", '-user', deploy_user, '-not', '-type', 'l', '-print0', '|', 'xargs', '-0', '--no-run-if-empty', 'setfacl', '-m', "u:#{web_user}:rX,u:#{app_user}:rwX"
|
15
15
|
# Set defaults for directories in public (that is permissions for new files made by the app).
|
16
|
-
execute :find, "#{shared_path}/public", '-user', deploy_user, '-type', 'd', '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "d:u:#{web_user}:rX,d:u:#{app_user}:rwX"
|
16
|
+
execute :find, "#{shared_path}/public", '-user', deploy_user, '-type', 'd', '-print0', '|', 'xargs', '-0', '--no-run-if-empty', 'setfacl', '-m', "d:u:#{web_user}:rX,d:u:#{app_user}:rwX"
|
17
17
|
# Set log and tmp writable by app_user.
|
18
|
-
execute :find, '-L', "#{release_path}/log", "#{release_path}/tmp", '-user', deploy_user, '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{app_user}:rwX"
|
18
|
+
execute :find, '-L', "#{release_path}/log", "#{release_path}/tmp", '-user', deploy_user, '-print0', '|', 'xargs', '-0', '--no-run-if-empty', 'setfacl', '-m', "u:#{app_user}:rwX"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-secure-permissions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rune Schjellerup Philosof
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|