Module: BuildFinder

Defined in:
lib/reggae.rb

Overview

Find the build object

Class Method Summary collapse

Class Method Details

.get_buildObject



5
6
7
8
9
10
11
12
# File 'lib/reggae.rb', line 5

def self.get_build
  builds = []
  ObjectSpace.each_object(Build) { |x| builds << x }
  if builds.length != 1
    fail "Only one Build object may exist, found #{builds.length}"
  end
  builds[0]
end