Class: FakeFtp::ServerCommands::Type

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

Instance Method Summary collapse

Instance Method Details

#run(_, type = 'A') ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/fake_ftp/server_commands/type.rb', line 6

def run(_, type = 'A', *)
  case type.to_s
  when 'A'
    '200 Type set to A.'
  when 'I'
    '200 Type set to I.'
  else
    '504 We don\'t allow those'
  end
end