Method: BuildBuddy::Recorder#get_build_data

Defined in:
lib/build_buddy/recorder.rb

#get_build_data(id) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/build_buddy/recorder.rb', line 46

def get_build_data(id)
  doc = @mongo[:builds].find({ :_id => BSON::ObjectId.from_string(id) }, { :limit => 1 }).first
  if doc.nil?
    return nil
  end
  BuildData.new(doc)
end