Class: FakeFtp::ServerCommands::Quit

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_ftp/server_commands/quit.rb

Instance Method Summary collapse

Instance Method Details

#run(ctx) ⇒ Object



6
7
8
9
10
# 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