capistrano-mod-group 0.1.2 → 0.1.3
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/.gitignore +2 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.md +42 -0
- data/Rakefile +0 -0
- data/capistrano-mod-group.gemspec +24 -0
- data/lib/capistrano-mod-group.rb +1 -0
- data/lib/capistrano/mod_group.rb +1 -0
- data/lib/capistrano/tasks/mod_group.rake +25 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0bc12f815708c62ffe298d43cbd55482cc06f5f
|
4
|
+
data.tar.gz: 48e83f0ef0a197d58389fb72970f7ee81a7f2769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ac2f8f53421fae934c079894b5f2863fd76bdf78a5365f1a85f65b10256b59f2c4261a19fb823c715ef773a96ff9fe8c5dd74a8490b484b4e6420c4fa9dba2
|
7
|
+
data.tar.gz: 462b0339e54223e2467a338223b422e3a47b444875e7f02b44300ca31f6a3a3182f3561547c20feab47e6bc2de9aa1d47e065effed567d58fa5dbfa9c7aeeb78
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Andy Palmer
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
capistrano-mod-group
|
2
|
+
=====================
|
3
|
+
|
4
|
+
Capistrano v3.* extension to change the group of shared folders/files after deployment
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'capistrano', '~> 3.3.0'
|
12
|
+
gem 'capistrano-mod-group'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install capistrano-mod-group
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Require in `Capfile` to use the default task:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'capistrano/mod_group'
|
29
|
+
```
|
30
|
+
|
31
|
+
## Example
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
set :mod_group, 'apache'
|
35
|
+
set :mod_directories, [
|
36
|
+
'web/cache'
|
37
|
+
]
|
38
|
+
```
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
Released under the [MIT license](LICENSE)
|
data/Rakefile
ADDED
File without changes
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'capistrano-mod-group'
|
7
|
+
spec.version = '0.1.3'
|
8
|
+
spec.authors = ['Andy Palmer']
|
9
|
+
spec.email = ['andy@andypalmer.me']
|
10
|
+
spec.description = %q{Change group of shared files/folders and add group writable bit}
|
11
|
+
spec.summary = %q{Change group of shared files/folders and add group writable bit}
|
12
|
+
spec.homepage = 'https://github.com/andyexeter/capistrano-mod-group'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_runtime_dependency 'capistrano', '~> 3.0', '>= 3.0.0'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake', '~> 0'
|
24
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/mod_group.rake', __FILE__)
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/mod_group.rake', __FILE__)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
namespace :deploy do
|
2
|
+
task :mod_group do
|
3
|
+
on roles :app do
|
4
|
+
dirs = fetch(:mod_group_directories, [])
|
5
|
+
dirs.each do |dir|
|
6
|
+
execute "chgrp #{fetch(:mod_group)} #{shared_path}/#{dir} && chmod g+w #{shared_path}/#{dir}"
|
7
|
+
info "Group of #{shared_path}/#{dir} changed to #{fetch(:mod_group)} and writable bit set"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
task :finished do
|
13
|
+
invoke "deploy:mod_group"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
namespace :load do
|
18
|
+
task :defaults do
|
19
|
+
set :mod_group, 'apache'
|
20
|
+
set :mod_group_directories, [
|
21
|
+
'web/cache',
|
22
|
+
'web/cache/images'
|
23
|
+
]
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-mod-group
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Palmer
|
@@ -64,7 +64,16 @@ email:
|
|
64
64
|
executables: []
|
65
65
|
extensions: []
|
66
66
|
extra_rdoc_files: []
|
67
|
-
files:
|
67
|
+
files:
|
68
|
+
- ".gitignore"
|
69
|
+
- Gemfile
|
70
|
+
- LICENSE
|
71
|
+
- README.md
|
72
|
+
- Rakefile
|
73
|
+
- capistrano-mod-group.gemspec
|
74
|
+
- lib/capistrano-mod-group.rb
|
75
|
+
- lib/capistrano/mod_group.rb
|
76
|
+
- lib/capistrano/tasks/mod_group.rake
|
68
77
|
homepage: https://github.com/andyexeter/capistrano-mod-group
|
69
78
|
licenses:
|
70
79
|
- MIT
|