Sha256: 434ebf3e1d6df41137315f34cd74051f16c4118cd8d3995a0a05e39faa5e45fa
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
module Ftpd module Error def error(message) raise CommandError, message end def transient_error(message) error "450 #{message}" end def unrecognized_error(s) error "500 Syntax error, command unrecognized: #{s.chomp}" end def unimplemented_error error "502 Command not implemented" end def sequence_error error "503 Bad sequence of commands" end def permanent_error(message) error "550 #{message}" end def syntax_error error "501 Syntax error" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.16.0 | lib/ftpd/error.rb |
ftpd-0.15.0 | lib/ftpd/error.rb |
ftpd-0.14.0 | lib/ftpd/error.rb |
ftpd-0.13.0 | lib/ftpd/error.rb |
ftpd-0.12.0 | lib/ftpd/error.rb |