capistrano-mb 0.30.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a05b43492beed1effeafad167eb836dcdc2e83e
4
- data.tar.gz: cdace3cc174aab85a0354155b0dc26febaf7e00a
3
+ metadata.gz: 13018566887440950e1972872f1e386738fed32a
4
+ data.tar.gz: 552f540aafb63cb054544caf30364b42bfa21976
5
5
  SHA512:
6
- metadata.gz: 8d06312acc750d0db5d34dfe095b12c09e43ea9cc331a39bac970912ca6f712ad911a834bb8168278f89badd316773ad0c70af7f2ae6880351264c8fdf05577f
7
- data.tar.gz: 3bb73f1f8f0570ff1044279f05bd10dc8b7c161bc2fd0a080c00e300efbc2d2d46006fa590be5a3dc87dfea29b3ba189d42e699ab05474e6a0a5b3df8bc67909
6
+ metadata.gz: a13aa35ca383b18a16663bd18855d6119bcb771c5af7452d5b2c03a80fa1a1bf158c3ff8ff06ef270c436e53fd2b6882a7df67535f5002b671b05cd4ce8706a9
7
+ data.tar.gz: e8bc4071f4577399c6e10e6aa3b170e0f54976f06306126032c367bf03d420665df15c57f665f2b1627d72640e2a90d12ba55ef61eadcf0c985a83f902e4349c
@@ -2,6 +2,13 @@
2
2
 
3
3
  * Your contribution here!
4
4
 
5
+ ## [0.31.0][] (2016-10-14)
6
+
7
+ * Ensure `software-properties-common` package is installed during `provision:14_04` so that `apt-add-repository` works.
8
+ * Don't echo dotenv values for keys with `pepper` in the name.
9
+ * Add `ntp` to the list of packages installed on all server roles.
10
+ * Fix "Capistrano tasks may only be invoked once" warning when using `deploy:migrate_and_restart` with Sidekiq.
11
+
5
12
  ## [0.30.0][] (2016-08-30)
6
13
 
7
14
  * Change the hooks such that `mb:crontab` is run at the end of every deployment,
@@ -181,7 +188,8 @@ Flush console output after each line is printed. This allows deployment progress
181
188
 
182
189
  Initial Rubygems release!
183
190
 
184
- [Unreleased]: https://github.com/mattbrictson/capistrano-mb/compare/v0.30.0...HEAD
191
+ [Unreleased]: https://github.com/mattbrictson/capistrano-mb/compare/v0.31.0...HEAD
192
+ [0.31.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.30.0...v0.31.0
185
193
  [0.30.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.29.0...v0.30.0
186
194
  [0.29.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.28.0...v0.29.0
187
195
  [0.28.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.27.0...v0.28.0
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module MB
3
- VERSION = "0.30.0".freeze
3
+ VERSION = "0.31.0".freeze
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  mb_recipe :aptitude do
2
2
  during :provision, %w(upgrade install)
3
+ before "provision:14_04", "mb:aptitude:install_software_properties"
3
4
  before "provision:14_04", "mb:aptitude:install_postgres_repo"
4
5
  before "provision:14_04", "mb:aptitude:change_postgres_packages"
5
6
  end
@@ -54,6 +55,15 @@ namespace :mb do
54
55
  set(:mb_aptitude_packages, packages)
55
56
  end
56
57
 
58
+ desc "Install package needed for apt-add-repository on 14.04"
59
+ task :install_software_properties do
60
+ privileged_on roles(:all) do |host|
61
+ unless _already_installed?("software-properties-common")
62
+ _install("software-properties-common")
63
+ end
64
+ end
65
+ end
66
+
57
67
  def _already_installed?(pkg)
58
68
  test(:sudo, "dpkg", "-s", pkg, "2>/dev/null", "|", :grep, "-q 'ok installed'")
59
69
  end
@@ -34,6 +34,7 @@ namespace :load do
34
34
  "libxslt1-dev" => :all,
35
35
  "nginx@ppa:nginx/stable" => :web,
36
36
  "nodejs@ppa:chris-lea/node.js" => :all,
37
+ "ntp" => :all,
37
38
  "postgresql-client@ppa:pitti/postgresql" => :all,
38
39
  "postgresql@ppa:pitti/postgresql" => :db,
39
40
  "tklib" => :all,
@@ -32,7 +32,7 @@ namespace :mb do
32
32
 
33
33
  def set_up_prompts
34
34
  fetch(:mb_dotenv_keys).each do |key|
35
- if key.to_s =~ /key|token|secret|password/i
35
+ if key.to_s =~ /key|token|secret|password|pepper/i
36
36
  ask(key, nil, :echo => false)
37
37
  else
38
38
  ask(key, nil)
@@ -32,6 +32,9 @@ namespace :mb do
32
32
 
33
33
  desc "restart sidekiq"
34
34
  task :restart do
35
+ # Re-enable the "stop" task, just in case we called it once already
36
+ # (as would happen during deploy:migrate_and_restart).
37
+ Rake::Task["mb:sidekiq:stop"].reenable
35
38
  invoke "mb:sidekiq:stop"
36
39
  invoke "mb:sidekiq:start"
37
40
  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.30.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.6.6
161
+ rubygems_version: 2.6.7
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Additional Capistrano 3 recipes