capistrano-mb 0.33.0 → 0.34.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/CHANGELOG.md +8 -1
- data/LICENSE.txt +1 -1
- data/README.md +6 -6
- data/capistrano-mb.gemspec +2 -2
- data/lib/capistrano/mb/version.rb +1 -1
- data/lib/capistrano/tasks/aptitude.rake +5 -4
- data/lib/capistrano/tasks/provision.rake +3 -15
- data/lib/capistrano/tasks/rbenv.rake +0 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c613f4442031c4fea2471e8fa79271df84748693db9e2bdd92ac8587621906d2
|
|
4
|
+
data.tar.gz: c472e8447afb828c06fa3e7959bc8782066412cc702264ad112738fec97edb19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eccf869fec1e783f08a6bdf0b3c766fd14759db8684776a9c31e1c6f1ba232f117efe9e63710aee5a9e62916ceb103f9871eb2f9b5b6ee28f27e87f47659fd92
|
|
7
|
+
data.tar.gz: cf4db6d3331255ff80ede35053eca881c8937be6c9da126bdda204bcdc3b036eb44a3f3f7f069d26c2363062f2b9c372c5f5bffc5e84387a33c7497fa95f94ec
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
* Your contribution here!
|
|
4
4
|
|
|
5
|
+
## [0.34.0][] (2018-05-20)
|
|
6
|
+
|
|
7
|
+
* Ubuntu 18.04 LTS is now supported
|
|
8
|
+
* Remove unnecessary steps from `mb:rbenv:modify_bashrc`
|
|
9
|
+
* Remove defunct `provision:12_04` and `provision:14_04` tasks
|
|
10
|
+
|
|
5
11
|
## [0.33.0][] (2017-12-29)
|
|
6
12
|
|
|
7
13
|
* Remove the deprecated `fiftyfive` compatibility layer
|
|
@@ -201,7 +207,8 @@ Flush console output after each line is printed. This allows deployment progress
|
|
|
201
207
|
|
|
202
208
|
Initial Rubygems release!
|
|
203
209
|
|
|
204
|
-
[Unreleased]: https://github.com/mattbrictson/capistrano-mb/compare/v0.
|
|
210
|
+
[Unreleased]: https://github.com/mattbrictson/capistrano-mb/compare/v0.34.0...HEAD
|
|
211
|
+
[0.34.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.33.0...v0.34.0
|
|
205
212
|
[0.33.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.32.0...v0.33.0
|
|
206
213
|
[0.32.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.31.0...v0.32.0
|
|
207
214
|
[0.31.0]: https://github.com/mattbrictson/capistrano-mb/compare/v0.30.0...v0.31.0
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# capistrano-mb
|
|
2
2
|
|
|
3
|
-
**An opinionated Capistrano task library for deploying Rails apps from scratch on Ubuntu 16.04 LTS.**
|
|
3
|
+
**An opinionated Capistrano task library for deploying Rails apps from scratch on Ubuntu 16.04 or 18.04 LTS.**
|
|
4
4
|
|
|
5
5
|
[](https://rubygems.org/gems/capistrano-mb)
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ The capistrano-mb gem adds a `cap <stage> provision` task to Capistrano that tak
|
|
|
21
21
|
|
|
22
22
|
The gem is named "capistrano-mb" because it is prescribes my ([@mattbrictson](https://github.com/mattbrictson)) personal preferences for automating deployments of Rails projects. I've worked several years as a freelance developer juggling lots of Rails codebases, so its important for me to have a good, consistent server configuration. You'll notice that capistrano-mb is opinionated and strictly uses the following stack:
|
|
23
23
|
|
|
24
|
-
* Ubuntu 16.04 LTS
|
|
24
|
+
* Ubuntu 16.04 or 18.04 LTS
|
|
25
25
|
* PostgreSQL
|
|
26
26
|
* Unicorn
|
|
27
27
|
* Nginx
|
|
@@ -34,7 +34,7 @@ Not quite to your liking? Consider forking the project to meet your needs.
|
|
|
34
34
|
|
|
35
35
|
## Roadmap
|
|
36
36
|
|
|
37
|
-
I plan to continue maintaining this project for the benefit of deploying my own Rails apps for the foreseeable future. In practice, this means a new version
|
|
37
|
+
I plan to continue maintaining this project for the benefit of deploying my own Rails apps for the foreseeable future. In practice, this means a new version or two per year. The behavior of capistrano-mb may change as I upgrade my apps to new versions of Rails. For example, at some point I might:
|
|
38
38
|
|
|
39
39
|
* Replace Unicorn with Puma
|
|
40
40
|
* Switch from dotenv to encrypted credentials
|
|
@@ -47,9 +47,9 @@ I plan to continue maintaining this project for the benefit of deploying my own
|
|
|
47
47
|
|
|
48
48
|
Please note that this project requires **Capistrano 3.x**, which is a complete rewrite of Capistrano 2.x. The two major versions are not compatible.
|
|
49
49
|
|
|
50
|
-
### 1. Purchase an Ubuntu 16.04 VPS
|
|
50
|
+
### 1. Purchase an Ubuntu 16.04 or 18.04 VPS
|
|
51
51
|
|
|
52
|
-
To use capistrano-mb, you'll need a clean **Ubuntu 16.04** server to deploy to. The only special requirement is that your public SSH key must be installed on the server for the `root` user.
|
|
52
|
+
To use capistrano-mb, you'll need a clean **Ubuntu 16.04 or 18.04** server to deploy to. The only special requirement is that your public SSH key must be installed on the server for the `root` user.
|
|
53
53
|
|
|
54
54
|
Test that you can SSH to the server as `root` without being prompted for a password. If that works, capistrano-mb can take care of the rest. You're ready to proceed!
|
|
55
55
|
|
|
@@ -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.
|
|
83
|
+
gem "capistrano-mb", "~> 0.34.0" :require => false
|
|
84
84
|
end
|
|
85
85
|
```
|
|
86
86
|
|
data/capistrano-mb.gemspec
CHANGED
|
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.description = \
|
|
12
12
|
"Production-ready provisioning and deployment recipes for Rails 4 and "\
|
|
13
13
|
"Rails 5 stacks. Installs and configures Ruby, Nginx, Unicorn, "\
|
|
14
|
-
"PostgreSQL, dotenv, and more onto Ubuntu
|
|
15
|
-
spec.summary = "Deploy Rails apps from scratch on Ubuntu
|
|
14
|
+
"PostgreSQL, dotenv, and more onto Ubuntu using Capistrano."
|
|
15
|
+
spec.summary = "Deploy Rails apps from scratch on Ubuntu"
|
|
16
16
|
spec.homepage = "https://github.com/mattbrictson/capistrano-mb"
|
|
17
17
|
spec.license = "MIT"
|
|
18
18
|
|
|
@@ -4,15 +4,16 @@ end
|
|
|
4
4
|
|
|
5
5
|
namespace :mb do
|
|
6
6
|
namespace :aptitude do
|
|
7
|
-
desc "Verify server is Ubuntu 16.04"
|
|
7
|
+
desc "Verify server is Ubuntu 16.04 or 18.04"
|
|
8
8
|
task :check do
|
|
9
9
|
privileged_on roles(:all) do
|
|
10
10
|
version = capture(:sudo, "lsb_release -a")[/^Release:\s+(\S+)$/, 1]
|
|
11
|
-
next if
|
|
11
|
+
next if %w[16.04 18.04].include?(version)
|
|
12
12
|
|
|
13
13
|
raise "Ubuntu version #{version || "unknown"} is not supported by "\
|
|
14
|
-
"capistrano-mb. Only Ubuntu 16.04
|
|
15
|
-
"capistrano-mb if you need to use an older version of
|
|
14
|
+
"capistrano-mb. Only Ubuntu 16.04 and 18.04 are supported. "\
|
|
15
|
+
"Downgrade capistrano-mb if you need to use an older version of "\
|
|
16
|
+
"Ubuntu."
|
|
16
17
|
end
|
|
17
18
|
end
|
|
18
19
|
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
# Define empty provision
|
|
2
|
-
#
|
|
1
|
+
# Define an empty provision task.
|
|
2
|
+
# This will be filled in by other recipes that contribute additional
|
|
3
3
|
# `before` and `during` tasks.
|
|
4
4
|
|
|
5
|
-
desc "Install and set up all app prerequisites
|
|
5
|
+
desc "Install and set up all app prerequisites"
|
|
6
6
|
task :provision
|
|
7
|
-
|
|
8
|
-
namespace :provision do
|
|
9
|
-
desc "Install and set up all app prerequisites for Ubuntu 12.04"
|
|
10
|
-
task :"12_04" do
|
|
11
|
-
invoke "provision"
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
desc "Install and set up all app prerequisites for Ubuntu 14.04"
|
|
15
|
-
task :"14_04" do
|
|
16
|
-
invoke "provision"
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -74,8 +74,6 @@ namespace :mb do
|
|
|
74
74
|
template("rbenv_bashrc", "/tmp/rbenvrc")
|
|
75
75
|
execute :cat, "/tmp/rbenvrc ~/.bashrc > /tmp/bashrc"
|
|
76
76
|
execute :mv, "/tmp/bashrc ~/.bashrc"
|
|
77
|
-
execute %q{export PATH="$HOME/.rbenv/bin:$PATH"}
|
|
78
|
-
execute %q{eval "$(rbenv init -)"}
|
|
79
77
|
end
|
|
80
78
|
end
|
|
81
79
|
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.
|
|
4
|
+
version: 0.34.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:
|
|
11
|
+
date: 2018-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -82,7 +82,7 @@ dependencies:
|
|
|
82
82
|
version: '0'
|
|
83
83
|
description: Production-ready provisioning and deployment recipes for Rails 4 and
|
|
84
84
|
Rails 5 stacks. Installs and configures Ruby, Nginx, Unicorn, PostgreSQL, dotenv,
|
|
85
|
-
and more onto Ubuntu
|
|
85
|
+
and more onto Ubuntu using Capistrano.
|
|
86
86
|
email: matt@mattbrictson.com
|
|
87
87
|
executables: []
|
|
88
88
|
extensions: []
|
|
@@ -154,8 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
154
|
version: '0'
|
|
155
155
|
requirements: []
|
|
156
156
|
rubyforge_project:
|
|
157
|
-
rubygems_version: 2.7.
|
|
157
|
+
rubygems_version: 2.7.7
|
|
158
158
|
signing_key:
|
|
159
159
|
specification_version: 4
|
|
160
|
-
summary: Deploy Rails apps from scratch on Ubuntu
|
|
160
|
+
summary: Deploy Rails apps from scratch on Ubuntu
|
|
161
161
|
test_files: []
|