capistrano-foreman-systemd 0.0.5 → 0.0.6

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: a12ad4934fe8677be0accaa7eadea09a35db9aa9
4
- data.tar.gz: adade7f34825fff1ecca01e4a7c10a1fd2bf56df
3
+ metadata.gz: d20becd7bc54a5315f83e34e84891843c5181216
4
+ data.tar.gz: d1654dc205b007456bc3544e6934300357afa312
5
5
  SHA512:
6
- metadata.gz: 900200d96945628018aee8f9c8960699b69220376a370c97469816e98e890a25566bebb24932510cf50becb0441b131b950488f7117e8f0b235cc832158652cc
7
- data.tar.gz: fb629eb1dc347c670c5c8c7d323b4017cd475898ab4f6fd588c10b400aa114fdfaa48fe4baef41669174ce348f88d8ad38fb972c2094af1328f0a2cf7813002f
6
+ metadata.gz: 4bc0f8f232dd9fefc754ff03e89b86fe3b690b8d44b9e865fc1fc3b2e6bc2be420805a7555ca8a7ea9137f5f5ba6bb95f37621e29572c24cebb3ea01562f06ad
7
+ data.tar.gz: 007ff5bdbe83d475fb8e8437e398c49f6d1369f6feca655699b665344838fe24904d1a52c82c1cbb9cdd1385c4f1a4ca187faf4f0fa8fd469a03c0e560f4b75e
@@ -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-foreman-systemd'
7
- spec.version = '0.0.5'
7
+ spec.version = '0.0.6'
8
8
  spec.authors = ['Adrian Serafin']
9
9
  spec.email = ['adrian@softmad.pl']
10
10
  spec.description = %q{Foreman and systemd tasks for Capistrano 3.x}
@@ -61,21 +61,21 @@ namespace :foreman do
61
61
  desc "Start the application services"
62
62
  task :start do
63
63
  on roles fetch(:foreman_roles) do
64
- sudo :start, fetch(:foreman_app)
64
+ sudo :systemctl, "start #{fetch(:foreman_app)}.target"
65
65
  end
66
66
  end
67
67
 
68
68
  desc "Stop the application services"
69
69
  task :stop do
70
70
  on roles fetch(:foreman_roles) do
71
- sudo :stop, fetch(:foreman_app)
71
+ sudo :systemctl, "stop #{fetch(:foreman_app)}.target"
72
72
  end
73
73
  end
74
74
 
75
75
  desc "Restart the application services"
76
76
  task :restart do
77
77
  on roles fetch(:foreman_roles) do
78
- sudo :restart, fetch(:foreman_app)
78
+ sudo :restart, "start #{fetch(:foreman_app)}.target"
79
79
  end
80
80
  end
81
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-foreman-systemd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Serafin