Sha256: 18fb5385ccb070e91419110d05923be5686e094e117b7f47faeedd930ac076a5
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require './lib/adapters/adapter' module MatrixCi class Project 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 def initialize(name, adapter, token) @name = name @adapter = MatrixCi::Adapter[adapter].new(token) @token = token end def all_recent_builds projects = @adapter.all_recent_builds end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matrixci-0.0.2 | lib/project.rb |