Sha256: 131687b5f435cbb2757cd7ba24e8062cc4e25fb81487ffd62b9a6545519fb6dd
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
require File.dirname(__FILE__) + '/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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
matrixci-0.0.7 | lib/project.rb |
matrixci-0.0.6 | lib/project.rb |
matrixci-0.0.5 | lib/project.rb |
matrixci-0.0.4 | lib/project.rb |
matrixci-0.0.3 | lib/project.rb |