Class: FTPMVC::Ftpd::Driver
- Inherits:
-
Object
- Object
- FTPMVC::Ftpd::Driver
- Defined in:
- lib/ftpmvc/ftpd/driver.rb
Instance Method Summary collapse
- #authenticate(username, password) ⇒ Object
- #file_system(username) ⇒ Object
-
#initialize(application) ⇒ Driver
constructor
A new instance of Driver.
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 |