capistrano-mb 0.34.0 → 0.34.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c613f4442031c4fea2471e8fa79271df84748693db9e2bdd92ac8587621906d2
4
- data.tar.gz: c472e8447afb828c06fa3e7959bc8782066412cc702264ad112738fec97edb19
3
+ metadata.gz: 68f43d084178125f5ab80a57d36d90c12078bdca7448a08c83a755aedbc7364a
4
+ data.tar.gz: f3bc5afd5ac6e790f6fd0e27d91279adb100bdaecdf3664ab91c0155b30e7f70
5
5
  SHA512:
6
- metadata.gz: eccf869fec1e783f08a6bdf0b3c766fd14759db8684776a9c31e1c6f1ba232f117efe9e63710aee5a9e62916ceb103f9871eb2f9b5b6ee28f27e87f47659fd92
7
- data.tar.gz: cf4db6d3331255ff80ede35053eca881c8937be6c9da126bdda204bcdc3b036eb44a3f3f7f069d26c2363062f2b9c372c5f5bffc5e84387a33c7497fa95f94ec
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.0...HEAD
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.0" :require => false
83
+ gem "capistrano-mb", "~> 0.34.1" :require => false
84
84
  end
85
85
  ```
86
86
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module MB
3
- VERSION = "0.34.0".freeze
3
+ VERSION = "0.34.1".freeze
4
4
  end
5
5
  end
@@ -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' >> /etc/sudoers.d/#{user}"
29
- execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl stop sidekiq_#{application_basename}.service' >> /etc/sudoers.d/#{user}"
30
- execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl restart sidekiq_#{application_basename}.service' >> /etc/sudoers.d/#{user}"
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' >> /etc/sudoers.d/#{user}"
29
- execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl stop unicorn_#{application_basename}.service' >> /etc/sudoers.d/#{user}"
30
- execute :sudo, "echo '#{user} ALL=NOPASSWD: /bin/systemctl restart unicorn_#{application_basename}.service' >> /etc/sudoers.d/#{user}"
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.0
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-05-20 00:00:00.000000000 Z
11
+ date: 2018-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano