specinfra 1.1.0 → 1.1.1

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: fe7b43308802b6c22f9fff57482e67176fbca74b
4
- data.tar.gz: 64d38d4c0a17ffbe4119b439a6cfbcade30b6609
3
+ metadata.gz: 5c9edb68ddb9d1c95ed346b421987f807021df76
4
+ data.tar.gz: 36358464eef992dc3cf3364866e08a1c086f3555
5
5
  SHA512:
6
- metadata.gz: 5815be4fb6eeaff6f77b16cd202584b94adc96098e151972d0b016f35355be6c8ef550d4c923a9e4194e34458289e5b99a3ab3a8a9ce2fea5119e367edd2fd3f
7
- data.tar.gz: 9333597c6499c3d6abd074b1c565ab5ee331a9578feecb3aaada090135ab12cac3e309283e8e5760c0df209acecde92ccac20bfefde9535a7beb89e8af1b2328
6
+ metadata.gz: 7a6b515310a782d345ccc5dfde022a10befc47be8cf666c47f59db3e4270f44c20c3d3e1dfd2aa24ed4f3d8dd8059b41efb129c1a8776b69c1b8806e9a36efac
7
+ data.tar.gz: 16f450fc9ac2fb8cbf780705f91cd958ecf9285723f8236f1541dd72c20dd4caec20ed13631e44469805ae379545cbc6cb39031e2979f1a8142536fa98ffff3b
@@ -5,8 +5,9 @@ module SpecInfra
5
5
  "runuser -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
6
6
  end
7
7
 
8
- def check_enabled(service, target="multi-user.target")
9
- "systemctl --plain list-dependencies #{target} | grep '^#{escape(service)}.service$'"
8
+ def check_enabled(service, level)
9
+ level = "multi-user.target" if level == 3
10
+ "systemctl --plain list-dependencies #{level} | grep '^#{escape(service)}.service$'"
10
11
  end
11
12
 
12
13
  def check_running(service)
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita