capistrano-procsd 0.2.0 → 0.2.1
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 +3 -0
- data/README.md +2 -2
- data/capistrano-procsd.gemspec +1 -1
- data/lib/capistrano/tasks/procsd.rake +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96622788e0adbfe5190b5a01158515bc94ef4c3a87d884d7e5b0ed9e35d0d6fa
|
|
4
|
+
data.tar.gz: d7288b34ac0ec027c9dbc9e2343efadf7f6fb62dfe2ee6b2a944c8db6e0fbd46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f9f57b1b0b84dc4beb176eb39a0b16cbbb16ef0c6f49de752ab9e721905fa0431fcb36a4bff4ab2c0d1811d4fc2a1d6aec3ce6babe21b8b4b9aad37290169c0
|
|
7
|
+
data.tar.gz: 0a090ee9043bb59366419e997e91dbf713ebaaf77113909df317c830e91917dfaa118aa6ff0418c2724efcc6318fba67af15dfce846658c881a5ac158e86a605
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -35,12 +35,12 @@ Require procsd tasks inside `Capfile`:
|
|
|
35
35
|
require 'capistrano/procsd'
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
And finally add hook to call `procsd:create_or_restart` task each time after publishing:
|
|
38
|
+
And finally add hook to call `procsd:create_or_restart` task each time after [publishing](https://capistranorb.com/documentation/getting-started/flow/):
|
|
39
39
|
|
|
40
40
|
```ruby
|
|
41
41
|
# config/deploy.rb
|
|
42
42
|
|
|
43
|
-
after "deploy:
|
|
43
|
+
after "deploy:published", "procsd:create_or_restart"
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
Done!
|
data/capistrano-procsd.gemspec
CHANGED
|
@@ -95,6 +95,8 @@ namespace :procsd do
|
|
|
95
95
|
task :run, :cmd do |t, args|
|
|
96
96
|
cmd = args[:cmd]
|
|
97
97
|
raise "Please provide a command to run" if cmd.nil? || cmd.empty?
|
|
98
|
+
# Automatically prepend -l option (login shell) for a bash command:
|
|
99
|
+
cmd += " -l" if cmd == "bash"
|
|
98
100
|
|
|
99
101
|
on roles(:all) do
|
|
100
102
|
ssh_exec cmd_with_env(cmd), task_name: :run
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-procsd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Afanasev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -88,6 +88,7 @@ extensions: []
|
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
90
|
- ".gitignore"
|
|
91
|
+
- CHANGELOG.md
|
|
91
92
|
- Gemfile
|
|
92
93
|
- LICENSE.txt
|
|
93
94
|
- README.md
|