capistrano-atlas 0.1.2 → 0.1.3

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: f894228558bc9f27bc7c056cdacd6b1c53088b8b
4
- data.tar.gz: d2a0aca0b65e99f403c31d72b499481855c25c78
3
+ metadata.gz: '0286afa79678deee58735bfcf93ea184e9a78664'
4
+ data.tar.gz: 53bbe3cb4446f2372f44f6a332201c88b4fe286c
5
5
  SHA512:
6
- metadata.gz: 9458a60d9a46f3aeb742a4bdd83028dffe8654d2e2d5cf2c38a9e8167d401fee8a3b35c4b0775f08175a3e052f4345bb1007b93babc71dd9ddfb6df16d3edebd
7
- data.tar.gz: 7f9b5bb5fd1bf02787591ec72d7c72734f0697bb68fc5a804418db05980f3a4d24dfb181d15f0ad2a340d18b9091e801fc519d994acc46b1a0f699cad22c74d6
6
+ metadata.gz: b7c58e1d8962bad5f67230fa7a627eeebaab0d9c93d03e4e07ba70f5ae8b0aa9266afac6aeeac3dccf81820e6f83fa3a23cca6b9e82a86bd67d3cd03a61e0a08
7
+ data.tar.gz: 5d4d05525aacffddff55aa9ddf1366577eb1b4886631fd6083f9f7a505cbe3820210c04f84f961ef14ec6f2b94539a46db1ce89ee5baf8c94172e3c5898c0ad4
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Atlas
3
- VERSION = "0.1.2".freeze
3
+ VERSION = "0.1.3".freeze
4
4
  end
5
5
  end
@@ -54,7 +54,8 @@ namespace :load do
54
54
  set :atlas_nginx_force_https, false
55
55
  set :atlas_nginx_redirect_hosts, {}
56
56
 
57
- ask :atlas_lets_encrypt_domain_name, "www.example.com"
57
+ ask :atlas_lets_encrypt_email
58
+ ask :atlas_lets_encrypt_domain_name
58
59
 
59
60
  set :atlas_puma_threads, "0, 8"
60
61
  set :atlas_puma_workers, 2
@@ -10,9 +10,9 @@ namespace :atlas do
10
10
  privileged_on roles(:web) do
11
11
  unless test("sudo [ -f /etc/ssl/#{application_basename}.crt ]")
12
12
  execute :sudo, "mkdir -p /opt/certbot"
13
- execute :sudo, "cd /opt/certbot/; wget https://dl.eff.org/certbot-auto; chmod a+x certbot-auto;"
13
+ execute :sudo, "cd /opt/certbot/ && wget https://dl.eff.org/certbot-auto && chmod a+x certbot-auto"
14
14
  execute :sudo, "/opt/certbot/certbot-auto certonly --agree-tos "\
15
- "--email #{letsencrypt_email} --webroot "\
15
+ "--email #{fetch(:atlas_lets_encrypt_email)} --webroot "\
16
16
  "-w #{current_path}/public "\
17
17
  "-d #{fetch(:atlas_lets_encrypt_domain_name)}"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-atlas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John McDowall