class MatrixCi::Project
Public Class Methods
all()
click to toggle source
# File lib/project.rb, line 5 def self.all conf = YAML.load(File.open(File.expand_path("~/.matrixci.conf")).read) conf.keys.map {|key| Project.new(key, conf[key]["adapter"], conf[key]["token"])} end
new(name, adapter, token)
click to toggle source
# File lib/project.rb, line 11 def initialize(name, adapter, token) @name = name @adapter = MatrixCi::Adapter[adapter].new(token) @token = token end
Public Instance Methods
all_recent_builds()
click to toggle source
# File lib/project.rb, line 17 def all_recent_builds projects = @adapter.all_recent_builds end