mina-infinum 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina/infinum/helpers.rb +4 -1
- data/lib/mina/infinum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f463f4963699c97cf41b1331d258eb1dea07ca7c5e4f2430dcec607bc4c9350a
|
4
|
+
data.tar.gz: dedd0583bcee40961709b8ee9db812ed2981bdea1ac519a1bc9aace7db06accc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a11b87a5d296e98c65a91d27ae0fdd54a2eab1e6cbaf3f37139c507f29c5793f627acf01328412829ea3e0cccb9c0341ab74ccac23e92cd3fc11269dee4deda5
|
7
|
+
data.tar.gz: e317432154c090eae6516e74ad04d7bde56fd2eec69404004ae1d22a8524c3433180cf086d7af0c620fde6a11d3fe718e5fd21ad0b2721cb196144787d08edc5
|
data/lib/mina/infinum/helpers.rb
CHANGED
@@ -3,8 +3,9 @@ def background_worker(state)
|
|
3
3
|
ensure!(:application_name)
|
4
4
|
ensure!(:service_manager)
|
5
5
|
comment %(#{state}ing #{background_worker_name})
|
6
|
+
service_manager = fetch(:service_manager).to_sym
|
6
7
|
|
7
|
-
case
|
8
|
+
case service_manager
|
8
9
|
when :systemd
|
9
10
|
case state
|
10
11
|
when :status
|
@@ -20,6 +21,8 @@ def background_worker(state)
|
|
20
21
|
else
|
21
22
|
command %(sudo #{state} #{background_worker_name})
|
22
23
|
end
|
24
|
+
else
|
25
|
+
raise StandardError.new "Invalid service_manager: #{service_manager}.\nSupported service managers: systemd, upstart."
|
23
26
|
end
|
24
27
|
end
|
25
28
|
|
data/lib/mina/infinum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-infinum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|