Sha256: b19d944247f5bce91fb025dcb4fa7307ac03c7dd8245da0f4039fc91a3525f62
Contents?: true
Size: 374 Bytes
Versions: 2
Compression:
Stored size: 374 Bytes
Contents
require 'rubygems' require 'celluloid' module Buildbox class Monitor include Celluloid def initialize(build, api) @build = build @api = api end def monitor loop do @api.update_build(@build) if @build.started? if @build.finished? break else sleep 1 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
buildbox-0.1.1 | lib/buildbox/monitor.rb |
buildbox-0.1 | lib/buildbox/monitor.rb |