Sha256: a77cce503829c22e839163f704d8190a872536ab9d2a1b797fbba58398dccd28
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
module Frontkick class CommandResult attr_accessor :stdout, :stderr, :exit_code, :duration 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
frontkick-0.2.1 | lib/frontkick/command_result.rb |