capistrano-lets-encrypt 0.1.0 → 0.2.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: f473171fd16aa1dce17e6fe5b6278a59b5170cba
4
- data.tar.gz: af32bc3f5619c618c6ce81592aca906281d7cf82
3
+ metadata.gz: 90da1a49714e482b35e657c3224aec74936e259a
4
+ data.tar.gz: 328392b3bec296ed09b6a37444d04c378dbf760a
5
5
  SHA512:
6
- metadata.gz: e303e3709d463323c185860a08c3507c14aeb99411674e3c860fa80706b945b1314cab424348278bcf8447ff619da8505fa1f743339459aa7534146f48e3b0f9
7
- data.tar.gz: 61e95f90349114548fb6d73a9bb3ba35fc5a912809ec4f7fcd8cd5cbaafbebfb0cce2c2a44eb7f6268e1579a48be2d536c7cd3106c1523fac44e778ae92285a6
6
+ metadata.gz: 9814cac7056f473ec0f840277ad14b8387a9156743a1ad8b87c26df2dad5cd691f8318666ac40fcf6278631887f15a337c95b6f768563e911f8a6484acd0e183
7
+ data.tar.gz: 2c9c2fdcba8fc3a44c0406841d3d95b220111e47f422cb69e18fd3856d6662366f42278d84a1a4bb2d2debad438dc3cc77455f60525e8bebabb05aa3a4a3e3f8
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
-
4
- gem 'pry'
data/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Let's encrypt support for Capistrano 3.x
4
4
 
5
+ Thanks to @unixcharles and @zealot128 for their libraries,
6
+ [acme-client](https://github.com/unixcharles/acme-client/) and
7
+ [letsencrypt-cli](https://github.com/zealot128/ruby-letsencrypt-cli) to manage
8
+ part of the workflow to work with Let's encrypt. This library use both to create
9
+ a series of capistrano tasks that should help you create certs on your projects
10
+ deployed with capistrano
11
+
5
12
  ## Installation
6
13
 
7
14
  Add this line to your application's Gemfile:
@@ -28,58 +35,47 @@ require 'capistrano/lets-encrypt'
28
35
  You will get the following tasks
29
36
 
30
37
  ```ruby
31
- cap delayed_job:start # Start delayed_job service
32
- cap delayed_job:stop # Stop delayed_job service
33
- cap delayed_job:restart # Restart delayed_job service
38
+ cap lets_encrypt:register # Register a Let's encrypt account
39
+ cap lets_encrypt:check_certificate # Check for validity of certificates
40
+ cap lets_encrypt:authorize # Authorize a domain using ACME protocol
41
+ cap lets_encrypt:cert # Create certificates and private keys
34
42
  ```
35
43
 
36
44
  Configurable options (copy into deploy.rb), shown here with examples:
37
45
 
38
46
  ```ruby
39
- # Number of delayed_job workers
40
- # default value: 1
41
- set :delayed_job_workers, 2
47
+ # default value: :web
48
+ set :lets_encrypt_roles, :lets_encrypt
42
49
 
43
- # String to be prefixed to worker process names
44
- # This feature allows a prefix name to be placed in front of the process.
45
- # For example: reports/delayed_job.0 instead of just delayed_job.0
46
- set :delayed_job_prefix, :reports
50
+ # default value: false
51
+ set :lets_encrypt_test, true
47
52
 
48
- # Delayed_job queue or queues
49
- # Set the --queue or --queues option to work from a particular queue.
50
53
  # default value: nil
51
- set :delayed_job_queues, ['mailer','tracking']
54
+ set :lets_encrypt_email, nil
52
55
 
53
- # Specify different pools
54
- # You can use this option multiple times to start different numbers of workers for different queues.
55
56
  # default value: nil
56
- set :delayed_job_pools, {
57
- :mailer => 2,
58
- :tracking => 1,
59
- :* => 2
60
- }
61
-
62
- # Set the roles where the delayed_job process should be started
63
- # default value: :app
64
- set :delayed_job_roles, [:app, :background]
65
-
66
- # Set the location of the delayed_job executable
67
- # Can be relative to the release_path or absolute
68
- # default value 'bin'
69
- set :delayed_job_bin_path, 'script' # for rails 3.x
70
-
71
- ### Set the location of the delayed_job logfile
72
- set :delayed_log_dir, 'path_to_logfile'
73
- ```
57
+ set :lets_encrypt_domains, nil
74
58
 
75
- It also adds the following hook
59
+ # default value: "#{release_path}/public"
60
+ set :lets_encrypt_challenge_public_path, "#{release_path}/public"
76
61
 
77
- ```ruby
78
- after 'deploy:published', 'restart' do
79
- invoke 'delayed_job:restart'
80
- end
62
+ # default value: "#{shared_path}/ssl/certs"
63
+ set :lets_encrypt_output_path, "#{shared_path}/ssl/certs"
64
+
65
+ # default value: "#{fetch(:lets_encrypt_email)}.account_key.pem"
66
+ set :lets_encrypt_account_key, "#{fetch(:lets_encrypt_email)}.account_key.pem"
67
+
68
+ # default value: 30
69
+ set :lets_encrypt_days_valid, 30
70
+
71
+ # default value: "~/certs"
72
+ set :lets_encrypt_local_output_path, "~/certs"
81
73
  ```
82
74
 
75
+ ## Requirements
76
+
77
+ This tool needs Ruby >= 2.1 (as the dependency acme-client needs that because of use of keyword arguments).
78
+
83
79
  ## Contributing
84
80
 
85
81
  1. Fork it
@@ -90,7 +86,7 @@ end
90
86
 
91
87
  ## Credits
92
88
 
93
- Thank you [contributors](https://github.com/platanus/guides/graphs/contributors)!
89
+ Thank you [contributors](https://github.com/platanus/capistran-lets-encrypt/graphs/contributors)!
94
90
 
95
91
  <img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="250"/>
96
92
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-lets-encrypt"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.2.0"
8
8
  spec.authors = ["Juan Ignacio Donoso"]
9
9
  spec.email = ["juan.ignacio@platan.us"]
10
10
  spec.summary = %q{Adds support for let's encrypt to Capistrano 3.x}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-lets-encrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-24 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano