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

Version Path
sprinkle-0.7.7 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.6.2 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.6.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.6 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.5 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.4 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.3 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.2 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.1.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.7 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.6.2 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.6.1.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.6.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.6.0 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.5.2 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.5.1.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.5.1 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.5.0 lib/sprinkle/errors/remote_command_failure.rb
sprinkle-0.5.0.rc1 lib/sprinkle/errors/remote_command_failure.rb