specinfra 2.82.20 → 2.82.21

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: 6e920f9df3ca076025d9c92638e3999cc0ba4b0f40f5c83b09cf035f6cfadf13
4
- data.tar.gz: b0c068c18c92efd330bf70deac78ecba681ccc9180f4cb68bcfa424086eee2a8
3
+ metadata.gz: 1aa21aa7df9050070d308c73b13bd884d6978abe7880a58a0bca2155341ca09b
4
+ data.tar.gz: 72235c0a17560c82dd765849b015d4bbaa80695d00ed6a66d5f596bca74cc15e
5
5
  SHA512:
6
- metadata.gz: 3d72663ebafa14bef5258048ae013fb6e7a48f99bd388149eab199c66a7be552dfb371bf0d7152dfcd6ad0f1a6a91dadb184423c5bd5629f418d284fe8dc1064
7
- data.tar.gz: 4b269bc6079be199ab05e35d3c3fe72c02900f30accf53661ee61c01d9b9121a8668683858f94f55e33b63b47a925253c950de4bcac2bed8abfac1f262fcddc8
6
+ metadata.gz: 9dcca7817a96c799461e76fd7ff45c392b3d5f46bb60b992cbea4ff5b22b7610a9b9027a2383ed16c4a1bff2c5deed89b16f0dcf3d242ea638161ef98be07593
7
+ data.tar.gz: dcd61ecca8e3b92998e4e86079e849768939200a43034281d3557480516514886057ab914dd6e5c86da5d589f3aba5d309e2336117167b228a1cedb9ca190ffc
@@ -4,8 +4,16 @@ class Specinfra::Command::Darwin::Base::Service < Specinfra::Command::Base::Serv
4
4
  "launchctl list | grep #{escape(service)}"
5
5
  end
6
6
 
7
+ def check_is_enabled_under_homebrew(service)
8
+ "brew services list | grep #{escape(service)}"
9
+ end
10
+
7
11
  def check_is_running(service)
8
12
  "launchctl list | grep #{escape(service)} | grep -E '^[0-9]+'"
9
13
  end
14
+
15
+ def check_is_running_under_homebrew(service)
16
+ "brew services list | grep #{escape(service)} | grep 'started'"
17
+ end
10
18
  end
11
19
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.20"
2
+ VERSION = "2.82.21"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.82.20
4
+ version: 2.82.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-10 00:00:00.000000000 Z
11
+ date: 2020-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp