Sha256: 6e1bd0e2b07e4549ca2a74f92a6bc290422dd97fe0afe5e3b8516ca7a80d6e59
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
module Bickle class ColorDecorator < SimpleDelegator def initialize(build, shell) @build = build @shell = shell super(@build) end def result res = @build.result if @build.pass? @shell.set_color(res, :green) elsif @build.fail? @shell.set_color(res, :red) else @shell.set_color(res, :yellow) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bickle-0.0.1 | lib/bickle/color_decorator.rb |