Sha256: fcdd11f8985daac7330c9a2f003a0a9fc83aefbe866f0e6cb61f55323f8f5e04
Contents?: true
Size: 673 Bytes
Versions: 10
Compression:
Stored size: 673 Bytes
Contents
class Kicker class LogStatusHelper attr_reader :command, :output, :exit_code def initialize(proc, command) @proc, @command, @output, @success = proc, command end def result(output, success, exit_code) @output, @success, @exit_code = output, success, exit_code end def call(logger_type) @logger_type = logger_type @proc.call(self) if @proc end def stdout? @logger_type == :stdout end def growl? @logger_type == :growl end def before? @output.nil? end def after? !before? end def success? @success end end end
Version data entries
10 entries across 10 versions & 1 rubygems