Sha256: 9f9196b8fab5cc6fc7b1d652c59d9f8e337d046abe40fb07d049e50e1a923164
Contents?: true
Size: 490 Bytes
Versions: 2
Compression:
Stored size: 490 Bytes
Contents
module Frontkick class CommandResult attr_accessor :stdout, :stderr, :exit_code, :duration alias :status :exit_code alias :status= :exit_code= def initialize(params) @stdout = params[:stdout] || "" @stderr = params[:stderr] || "" @exit_code = params[:exit_code] || 0 @duration = params[:duration] || 0 end def output @stdout end def errors @stderr end def successful? @exit_code == 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
frontkick-0.3.2 | lib/frontkick/command_result.rb |
frontkick-0.3.1 | lib/frontkick/command_result.rb |