class FakeFtp::ServerCommands::Quit

Public Instance Methods

run(ctx, *) click to toggle source
# File lib/fake_ftp/server_commands/quit.rb, line 6
def run(ctx, *)
  ctx.respond_with '221 OMG bye!'
  ctx.client&.close
  ctx.client = nil
end