capistrano-simple_systemd 0.1.0 → 0.1.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/Gemfile.lock +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +22 -1
- data/capistrano-simple_systemd.gemspec +4 -4
- data/lib/capistrano/simple_systemd/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda40e1475446c76a2540b874302e2d10390000568f0a1f74674dfbe27115d6d
|
4
|
+
data.tar.gz: 2eeaee0344715bc9bbfbe385ce7f09208d071675afb9692d4ead02bd1b4e7a97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e12110fc85a12e817f1a84acc501f11ad0cbac0a36563baae8cfafc8a175120237ddb15979e65c0c47903795a9db8cbb6ddcab30d5b2b30ea6f990b6f7a293e7
|
7
|
+
data.tar.gz: 97272c579d7f5055a80de64cbc55cb6b12d37e5b6a3b90306c7b389f9235b0445367ed5f43a3d2cf97bf9af5990ba3635c2b06b125b191700268a62f3fd6cbc1
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -27,6 +27,27 @@ require "capistrano/simple_systemd"
|
|
27
27
|
```
|
28
28
|
|
29
29
|
Service files are defined as ERB templates ending with `.service.erb` in `config/systemd`. <br>
|
30
|
+
Sample erb template
|
31
|
+
```
|
32
|
+
[Unit]
|
33
|
+
Description=SMS Service
|
34
|
+
After=network.target
|
35
|
+
|
36
|
+
[Service]
|
37
|
+
Type=simple
|
38
|
+
User=deploy
|
39
|
+
Environment=RACK_ENV=<%= fetch(:stage) %>
|
40
|
+
WorkingDirectory=<%= current_path %>
|
41
|
+
ExecStart=<%= "#{fetch(:home_dir)}/.rvm/bin/rvm #{fetch(:rvm_ruby_version)} do bundle exec #{current_path}/bin/sms_service"%>
|
42
|
+
TimeoutSec=10
|
43
|
+
Restart=always
|
44
|
+
StandardOutput=syslog
|
45
|
+
StandardError=syslog
|
46
|
+
SyslogIdentifier=sms-service
|
47
|
+
|
48
|
+
[Install]
|
49
|
+
WantedBy=multi-user.target
|
50
|
+
```
|
30
51
|
PLEASE NOTE: Currently only files with the `.service.erb` extension are considered as service file templates. Others like `.target.erb` aren't supported yet
|
31
52
|
|
32
53
|
The following tasks are provided out of the box
|
@@ -86,7 +107,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
86
107
|
|
87
108
|
## Contributing
|
88
109
|
|
89
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
110
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/gkosae/capistrano-simple_systemd.git.
|
90
111
|
|
91
112
|
## License
|
92
113
|
|
@@ -5,18 +5,18 @@ require "capistrano/simple_systemd/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-simple_systemd"
|
7
7
|
spec.version = Capistrano::SimpleSystemd::VERSION
|
8
|
-
spec.authors = ["
|
8
|
+
spec.authors = ["George Osae"]
|
9
9
|
spec.email = ["coderwasp@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = "Simple systemd integration for Capistrano."
|
12
|
-
spec.description = "Simple systemd integration for Capistrano. Uploads service files"
|
13
|
-
spec.homepage = "https://github.com/
|
12
|
+
spec.description = "Simple systemd integration for Capistrano. Uploads service files and provides rake tasks for managing these services"
|
13
|
+
spec.homepage = "https://github.com/gkosae/capistrano-simple_systemd.git"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
17
17
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
spec.metadata["source_code_uri"] = "https://github.com/
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/gkosae/capistrano-simple_systemd.git"
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-simple_systemd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- George Osae
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -80,7 +80,8 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10.0'
|
83
|
-
description: Simple systemd integration for Capistrano. Uploads service files
|
83
|
+
description: Simple systemd integration for Capistrano. Uploads service files and
|
84
|
+
provides rake tasks for managing these services
|
84
85
|
email:
|
85
86
|
- coderwasp@gmail.com
|
86
87
|
executables: []
|
@@ -103,13 +104,13 @@ files:
|
|
103
104
|
- lib/capistrano/tasks/simple_systemd/global_tasks.rake
|
104
105
|
- lib/capistrano/tasks/simple_systemd/specific_tasks.rake
|
105
106
|
- lib/capistrano/tasks/simple_systemd/task_defaults.rake
|
106
|
-
homepage: https://github.com/
|
107
|
+
homepage: https://github.com/gkosae/capistrano-simple_systemd.git
|
107
108
|
licenses:
|
108
109
|
- MIT
|
109
110
|
metadata:
|
110
111
|
allowed_push_host: https://rubygems.org
|
111
|
-
homepage_uri: https://github.com/
|
112
|
-
source_code_uri: https://github.com/
|
112
|
+
homepage_uri: https://github.com/gkosae/capistrano-simple_systemd.git
|
113
|
+
source_code_uri: https://github.com/gkosae/capistrano-simple_systemd.git
|
113
114
|
post_install_message:
|
114
115
|
rdoc_options: []
|
115
116
|
require_paths:
|