capistrano-systemd-ng 0.1.3 → 0.1.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb84da1ac6f33cc067142d9dd9348c7815583319ca23e64c2e90f1c30799810f
|
4
|
+
data.tar.gz: 293ed348d3871183e49ae5ce4ab4c7bed5ba31c7734306c4f50b3c8aff7fd61e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c742af5b9d483b4a8ae1e439bce8bf59cc6236e8a8a98de56e9d7f4935966006aa2a9599ef9edd4fb66d3acac4b5eff590fd98256a13314801b80fd5a493edc
|
7
|
+
data.tar.gz: 8b7a28307b5bbe1edf285cb7838e961dd76c9c3ead8981c9d29c53751475dc918ac1d92d9eeaed92cf980751793fd0976b59fa3acbeb31e5f5fdebc52e552f92
|
data/.github/workflows/ci.yml
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,13 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
|
26
|
+
Please activate the Capistrano `app`role in `config/deploy/staging.rb`and/or `config/deploy/production.rb`:
|
27
|
+
```
|
28
|
+
role :app, %w{deploy@example.com}
|
29
|
+
```
|
30
|
+
Replace `example.com` by the domain name used by your server.
|
31
|
+
|
32
|
+
And add these lines to your Capfile:
|
27
33
|
|
28
34
|
```ruby
|
29
35
|
require "capistrano/systemd/multiservice"
|
@@ -77,7 +77,7 @@ module Capistrano
|
|
77
77
|
|
78
78
|
def setup
|
79
79
|
fetch(:"#{prefix}_units_src").zip(fetch(:"#{prefix}_units_dest")).each do |src, dest|
|
80
|
-
buf = StringIO.new(ERB.new(File.read(src),
|
80
|
+
buf = StringIO.new(ERB.new(File.read(src), trim_mode: '-', eoutvar: '@output_buffer').result(binding))
|
81
81
|
setup_service buf, src, dest
|
82
82
|
end
|
83
83
|
end
|