capistrano-twingly 4.0.0 → 4.0.1

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: 9219f0a0906443a3e14e4fdf7b8bc200b50b4ed0948f75abc0586c1a11b7ce28
4
- data.tar.gz: e2c7d9bcc2f834158d7a1edaea6644e5f1e506f981dfd1f3365167a25cf9ea25
3
+ metadata.gz: 4af628ef8ffde933c91bfe2f48b7bb162fef6d5966148c92f661ad1f517716a0
4
+ data.tar.gz: 5d8c45ad7038484f557eb9d5dd324b709e1152489cc33b9fadb3f32f2e4eeca9
5
5
  SHA512:
6
- metadata.gz: eff5f679774a4d2bd67addff46c89fab8df4350e0e3c1c2750735c7181dd3d0ec8e6c4d6deaefffd43b386a51141333943f45477a21392482281ec24d283f39e
7
- data.tar.gz: dc753f6f3a80d0b6c90e7c99807fe2e22638b7f849ef411051134b515ad8a3c2dfc4af095b5a2576d0d2cca9bd339faf3d64b6f990ab46f5c7badc44d412e12f
6
+ metadata.gz: 6f4275f7182ff4c3cf902eb4c4d829c1e4601f68294cea692bac60310e8c1b867016374152402e83675a60400984deb74b98b9a17669cd3e49fe3126f711f9b3
7
+ data.tar.gz: da6a66d6e1217224a15dcbbe5de12e57830f0612d7c8992cfa71d25707bcd002e29ed93448a8103858ffee03d436a2295ba04c4dd8dad09b25907ae44739a979
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## [v4.0.0](https://github.com/twingly/capistrano-twingly/tree/v4.0.0) (2019-04-29)
4
+ [Full Changelog](https://github.com/twingly/capistrano-twingly/compare/v3.0.0...v4.0.0)
5
+
6
+ **Closed issues:**
7
+
8
+ - Add systemd support [\#45](https://github.com/twingly/capistrano-twingly/issues/45)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Generate systemd config in addition to upstart [\#47](https://github.com/twingly/capistrano-twingly/pull/47) ([roback](https://github.com/roback))
13
+
3
14
  ## [v3.0.0](https://github.com/twingly/capistrano-twingly/tree/v3.0.0) (2018-11-08)
4
15
  [Full Changelog](https://github.com/twingly/capistrano-twingly/compare/v2.4.1...v3.0.0)
5
16
 
@@ -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-twingly"
7
- spec.version = '4.0.0'
7
+ spec.version = '4.0.1'
8
8
  spec.authors = ["Twingly AB"]
9
9
  spec.email = ["support@twingly.com"]
10
10
  spec.summary = %q{Capistrano 3 tasks used for Twingly's Ruby deployment}
@@ -22,7 +22,12 @@ namespace :deploy do
22
22
  end
23
23
 
24
24
  on roles(:systemd) do
25
- sudo :systemctl, "stop #{fetch(:application)}.target"
25
+ load_state =
26
+ capture "systemctl show #{fetch(:application)}.target -p LoadState --value"
27
+
28
+ if load_state == "loaded"
29
+ sudo :systemctl, "stop #{fetch(:application)}.target"
30
+ end
26
31
 
27
32
  within current_path do
28
33
  sudo fetch(:chruby_exec), "#{fetch(:chruby_ruby)} -- #{fetch(:bundle_binstubs)}/foreman export systemd /etc/systemd/system -a #{fetch(:application)} -u \`whoami\` -l #{shared_path}/log"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-twingly
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twingly AB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.0.3
212
+ rubygems_version: 3.0.2
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Capistrano 3 tasks used for Twingly's Ruby deployment