capistrano-mb 0.34.0 → 0.34.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/lib/capistrano/mb/version.rb +1 -1
- data/lib/capistrano/tasks/sidekiq.rake +3 -3
- data/lib/capistrano/tasks/unicorn.rake +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68f43d084178125f5ab80a57d36d90c12078bdca7448a08c83a755aedbc7364a
|
4
|
+
data.tar.gz: f3bc5afd5ac6e790f6fd0e27d91279adb100bdaecdf3664ab91c0155b30e7f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e735269bc0d0e34347e3d508730c73ad6f15bb3cfddae0d22983efbac9ff288d6934fc1000230da21f5d041f972d34d182e98963e0e25fc67216523d10c218
|
7
|
+
data.tar.gz: d76339732d9c69adc2d480046ce8501ccf50b7202ac1d1d30533c902c1e2efc8ebd4cadfd09c015b8f3d61c5ca8518b7febf3f422ecc1070e469f65b54c9f107
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
* Your contribution here!
|
4
4
|
|
5
|
+
## [0.34.1][] (2018-07-08)
|
6
|
+
|
7
|
+
* [#18](https://github.com/mattbrictson/capistrano-mb/pull/18): Use `tee` to fix a problem where certain provisioning steps would fail for a non-root user
|
8
|
+
|
5
9
|
## [0.34.0][] (2018-05-20)
|
6
10
|
|
7
11
|
* Ubuntu 18.04 LTS is now supported
|
@@ -207,7 +211,8 @@ Flush console output after each line is printed. This allows deployment progress
|
|
207
211
|
|
208
212
|
Initial Rubygems release!
|
209
213
|
|
210
|
-
[Unreleased]: https://github.com/mattbrictson/capistrano-mb/compare/v0.34.
|
214
|
+
[Unreleased]: https://github.com/mattbrictson/capistrano-mb/compare/v0.34.1...HEAD
|
215
|
+
[0.34.1]: https://github.com/mattbrictson/capistrano-mb/compare/v0.34.0...v0.34.1
|
211
216
|
[0.34.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.33.0...v0.34.0
|
212
217
|
[0.33.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.32.0...v0.33.0
|
213
218
|
[0.32.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.31.0...v0.32.0
|
data/README.md
CHANGED
@@ -80,7 +80,7 @@ group :development do
|
|
80
80
|
gem "capistrano-bundler", :require => false
|
81
81
|
gem "capistrano-rails", :require => false
|
82
82
|
gem "capistrano", "~> 3.10", :require => false
|
83
|
-
gem "capistrano-mb", "~> 0.34.
|
83
|
+
gem "capistrano-mb", "~> 0.34.1" :require => false
|
84
84
|
end
|
85
85
|
```
|
86
86
|
|
@@ -25,9 +25,9 @@ namespace :mb do
|
|
25
25
|
unless test(:sudo, "grep -qs sidekiq_#{application_basename}.service /etc/sudoers.d/#{user}")
|
26
26
|
execute :sudo, "touch -f /etc/sudoers.d/#{user}"
|
27
27
|
execute :sudo, "chmod u+w /etc/sudoers.d/#{user}"
|
28
|
-
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl start sidekiq_#{application_basename}.service'
|
29
|
-
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl stop sidekiq_#{application_basename}.service'
|
30
|
-
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl restart sidekiq_#{application_basename}.service'
|
28
|
+
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl start sidekiq_#{application_basename}.service' | sudo tee -a /etc/sudoers.d/#{user}"
|
29
|
+
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl stop sidekiq_#{application_basename}.service' | sudo tee -a /etc/sudoers.d/#{user}"
|
30
|
+
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl restart sidekiq_#{application_basename}.service' | sudo tee -a /etc/sudoers.d/#{user}"
|
31
31
|
execute :sudo, "chmod 440 /etc/sudoers.d/#{user}"
|
32
32
|
end
|
33
33
|
end
|
@@ -25,9 +25,9 @@ namespace :mb do
|
|
25
25
|
unless test(:sudo, "grep -qs unicorn_#{application_basename}.service /etc/sudoers.d/#{user}")
|
26
26
|
execute :sudo, "touch -f /etc/sudoers.d/#{user}"
|
27
27
|
execute :sudo, "chmod u+w /etc/sudoers.d/#{user}"
|
28
|
-
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl start unicorn_#{application_basename}.service'
|
29
|
-
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl stop unicorn_#{application_basename}.service'
|
30
|
-
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl restart unicorn_#{application_basename}.service'
|
28
|
+
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl start unicorn_#{application_basename}.service' | sudo tee -a /etc/sudoers.d/#{user}"
|
29
|
+
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl stop unicorn_#{application_basename}.service' | sudo tee -a /etc/sudoers.d/#{user}"
|
30
|
+
execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl restart unicorn_#{application_basename}.service' | sudo tee -a /etc/sudoers.d/#{user}"
|
31
31
|
execute :sudo, "chmod 440 /etc/sudoers.d/#{user}"
|
32
32
|
end
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-mb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|