darkhelmet-darkext 0.7.1 → 0.7.2

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.
Files changed (2) hide show
  1. data/lib/darkext/beagle.rb +11 -0
  2. metadata +1 -1
@@ -37,6 +37,17 @@ module Beagle
37
37
  parser.call(output)
38
38
  end
39
39
 
40
+ def self.running?
41
+ raise BeagleError, "Beagle.home (BEAGLE_HOME) not set!" if home.nil?
42
+ return false if status.include?("Could not connect")
43
+ return true
44
+ end
45
+
46
+ def self.status
47
+ raise BeagleError, "Beagle.home (BEAGLE_HOME) not set!" if home.nil?
48
+ DarkIO.capture_output(:stderr => false) { system('beagle-info','--status') }.strip
49
+ end
50
+
40
51
  private
41
52
 
42
53
  def self.verbose_parser
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darkhelmet-darkext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Huckstep