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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 678f36b61233ee76105780721fa080ebb1408fea53b2721cf1af759f7506e6b0
4
- data.tar.gz: 45f9889af566c91b88f864d8cb1619b2298311e986c6421ffc45c27108b6b357
3
+ metadata.gz: 96622788e0adbfe5190b5a01158515bc94ef4c3a87d884d7e5b0ed9e35d0d6fa
4
+ data.tar.gz: d7288b34ac0ec027c9dbc9e2343efadf7f6fb62dfe2ee6b2a944c8db6e0fbd46
5
5
  SHA512:
6
- metadata.gz: c953b465c7e78772927a04e2c559e28fca5feb40a3cd3e18b71746c3c1359560abc4ed8b8b0010544f9b58adb810ed727051ed2be582df8588556fede6d98a36
7
- data.tar.gz: dcdc13860d1c7c224c154084549012c92f97b4a5511a03179b6c3da6c303183f719dda8dd6242430e180fae44c5c46d46297c29187bb6861377150d168a889e9
6
+ metadata.gz: 0f9f57b1b0b84dc4beb176eb39a0b16cbbb16ef0c6f49de752ab9e721905fa0431fcb36a4bff4ab2c0d1811d4fc2a1d6aec3ce6babe21b8b4b9aad37290169c0
7
+ data.tar.gz: 0a090ee9043bb59366419e997e91dbf713ebaaf77113909df317c830e91917dfaa118aa6ff0418c2724efcc6318fba67af15dfce846658c881a5ac158e86a605
@@ -0,0 +1,3 @@
1
+ # CHANGELOG
2
+ ## 0.2.1
3
+ * Automatically prepend `-l` flag to the bash command (`cap production procsd:run[bash]`) to run bash session with login shell and properly read environment
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:publishing", "procsd:create_or_restart"
43
+ after "deploy:published", "procsd:create_or_restart"
44
44
  ```
45
45
 
46
46
  Done!
@@ -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-procsd"
7
- spec.version = "0.2.0"
7
+ spec.version = "0.2.1"
8
8
  spec.authors = ["Victor Afanasev"]
9
9
  spec.email = ["vicfreefly@gmail.com"]
10
10
 
@@ -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.0
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-12 00:00:00.000000000 Z
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