Class: FTPMVC::Ftpd::Driver

Inherits:
Object
  • Object
show all
Defined in:
lib/ftpmvc/ftpd/driver.rb

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ Driver

Returns a new instance of Driver.



6
7
8
# File 'lib/ftpmvc/ftpd/driver.rb', line 6

def initialize(application)
  @application = application
end

Instance Method Details

#authenticate(username, password) ⇒ Object



10
11
12
# File 'lib/ftpmvc/ftpd/driver.rb', line 10

def authenticate(username, password)
  @application.authenticate(username, password)
end

#file_system(username) ⇒ Object



14
15
16
# File 'lib/ftpmvc/ftpd/driver.rb', line 14

def file_system(username)
  FileSystem.new(@application)
end