capistrano-foreman 1.3.0 → 1.4.0

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
- SHA1:
3
- metadata.gz: 72d27f301f00f266dfa92a4789280b467e825456
4
- data.tar.gz: 13d23913abd8b7831cc87aab90f574ea9c281010
2
+ SHA256:
3
+ metadata.gz: 8b1415432fecb815110fcf045bba131613237f03fe0ccb1cb51935b644ff01c2
4
+ data.tar.gz: dfff9de0dbdef6ad910eae6862e39f8679d3c1b10a53515fd8e84f0317416f70
5
5
  SHA512:
6
- metadata.gz: 590652ab4c24ac7f27abf4e2b93dc1b2e7b68b963b8b661996ba0c245a065fb8adcf35ed448f42a6afd3f6466504afaa9734ca274eb5ffcb7bf2a13e1ead7e74
7
- data.tar.gz: 2b7d6c5c9d78765b6c8bdd8ea8fbbfe80ec2a3aa0ee357983705e5d0878f3883b7f375261cb33d0c0b43c13ae3a785310e5a796e51d629e30509213c0fe7d21a
6
+ metadata.gz: 1ee3bd00f85314e78f9ade382be0bba74214b2f959cb81625efcfdcf16e6ba3ea2daaf2d70eb8ad04be93046d65f72b603e3fadf5672216f96d9251f50b0aad7
7
+ data.tar.gz: '0338e36f557b4f61ca59c456b691feebaba136b253536fbb79b1abcfafa87bc36b4ae57f2007cd23e03784aa725418d4e56b247c8beee91545d0c579a92253ec'
data/README.md CHANGED
@@ -18,6 +18,8 @@ set :foreman_use_sudo, false # Set to :rbenv for rbenv sudo, :rvm for rvmsudo or
18
18
  set :foreman_roles, :all
19
19
  set :foreman_init_system, 'upstart'
20
20
  set :foreman_export_path, ->{ File.join(Dir.home, '.init') }
21
+ set :foreman_app, -> { fetch(:application) }
22
+ set :foreman_app_name_systemd, -> { "#{ fetch(:foreman_app) }.target" }
21
23
  set :foreman_options, ->{ {
22
24
  app: application,
23
25
  log: File.join(shared_path, 'log')
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
15
  gem.name = "capistrano-foreman"
16
16
  gem.require_paths = ["lib"]
17
- gem.version = '1.3.0'
17
+ gem.version = '1.4.0'
18
18
 
19
19
  gem.add_dependency 'capistrano', '~> 3.1'
20
20
  gem.add_dependency 'capistrano-bundler', '~> 1.1'
@@ -22,6 +22,10 @@ namespace :foreman do
22
22
  fetch(:foreman_export_path),
23
23
  opts.map { |opt, value| "--#{opt}=\"#{value}\"" }.join(' ')
24
24
  end
25
+
26
+ if fetch(:foreman_init_system) == 'systemd'
27
+ foreman_exec :systemctl, :'daemon-reload'
28
+ end
25
29
  end
26
30
  end
27
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Gorset
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-19 00:00:00.000000000 Z
12
+ date: 2019-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '3.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: capistrano-bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.1'
42
42
  description: Capistrano tasks for foreman and upstart/systemd.
@@ -47,7 +47,7 @@ executables: []
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
- - .gitignore
50
+ - ".gitignore"
51
51
  - Gemfile
52
52
  - LICENSE
53
53
  - LICENSE.md
@@ -66,17 +66,17 @@ require_paths:
66
66
  - lib
67
67
  required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.0.14.1
79
+ rubygems_version: 2.7.6
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Capistrano tasks for foreman and upstart/systemd.