Sha256: 6576a65ef6347cfed1450231df99df8ec1c5faf9201f74c7f5a327a1cf77e766
Contents?: true
Size: 719 Bytes
Versions: 20
Compression:
Stored size: 719 Bytes
Contents
module Sprinkle module Errors class RemoteCommandFailure < PrettyFailure #:nodoc: def print_summary summary log "Command", @details[:command] # capistrano returns this log "Hosts", @details[:hosts] if @details[:hosts] # ssh actor returns error and stdout outputs log "STDERR", @details[:error] unless @details[:error].blank? log "STDOUT", @details[:stdout] unless @details[:stdout].blank? log "Actor error message", @details[:message] if @details[:message] end def summary boxed("Package '#{@installer.package.name}' returned error code #{@details[:code]}.") end end end end
Version data entries
20 entries across 20 versions & 1 rubygems