Sha256: 7b75f10d60db43ba5fb41a7226daef51b2e69966a782556bd49765fa2fee1fd8

Contents?: true

Size: 267 Bytes

Versions: 11

Compression:

Stored size: 267 Bytes

Contents

require_relative 'command_handler'

module Ftpd

  # The Quit (QUIT) command

  class CmdQuit < CommandHandler

    def cmd_quit(argument)
      syntax_error if argument
      ensure_logged_in
      reply "221 Byebye"
      self.logged_in = false
    end

  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
ftpd-1.1.1 lib/ftpd/cmd_quit.rb
ftpd-1.1.0 lib/ftpd/cmd_quit.rb
investtools-ftpd-1.0.1 lib/ftpd/cmd_quit.rb
ftpd-1.0.1 lib/ftpd/cmd_quit.rb
ftpd-1.0.0 lib/ftpd/cmd_quit.rb
ftpd-0.17.0 lib/ftpd/cmd_quit.rb
ftpd-0.16.0 lib/ftpd/cmd_quit.rb
ftpd-0.15.0 lib/ftpd/cmd_quit.rb
ftpd-0.14.0 lib/ftpd/cmd_quit.rb
ftpd-0.13.0 lib/ftpd/cmd_quit.rb
ftpd-0.12.0 lib/ftpd/cmd_quit.rb