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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b51a3fe012ab829a8fe12adb6c011f09f17ab1ba6603234831c0d5119526872c
4
- data.tar.gz: b240f4f81cbcc7a3fdf93ccafc681446d1b9de96e2d590302352ffe4c45092c9
3
+ metadata.gz: f463f4963699c97cf41b1331d258eb1dea07ca7c5e4f2430dcec607bc4c9350a
4
+ data.tar.gz: dedd0583bcee40961709b8ee9db812ed2981bdea1ac519a1bc9aace7db06accc
5
5
  SHA512:
6
- metadata.gz: 8c6b13158e8ff840c2e8fa5ef427e096979963564f9f15d37a62b92f4cb1e3608005850b09bfd5f90c4060173c4b142fca83ba266f8c4c054e489614560b331c
7
- data.tar.gz: ba58249bf4b00ca637b3d14de6ccb571a500cf3cb4e082f50bf0399eeaeb2f9adc27d75ab00cb14340531fa2bc74171e723a0bff5c0489e1c0099e0aca938727
6
+ metadata.gz: a11b87a5d296e98c65a91d27ae0fdd54a2eab1e6cbaf3f37139c507f29c5793f627acf01328412829ea3e0cccb9c0341ab74ccac23e92cd3fc11269dee4deda5
7
+ data.tar.gz: e317432154c090eae6516e74ad04d7bde56fd2eec69404004ae1d22a8524c3433180cf086d7af0c620fde6a11d3fe718e5fd21ad0b2721cb196144787d08edc5
@@ -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 fetch(:service_manager)
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
 
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Infinum
3
- VERSION = '1.5.0'.freeze
3
+ VERSION = '1.6.0'.freeze
4
4
  end
5
5
  end
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.5.0
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: 2019-06-07 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler