Class: Purvey::Driver

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

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ Driver

Returns a new instance of Driver.



3
4
5
# File 'lib/purvey/driver.rb', line 3

def initialize(dir)
  @dir = dir
end

Instance Method Details

#authenticate(user, password) ⇒ Object



7
8
9
# File 'lib/purvey/driver.rb', line 7

def authenticate(user, password)
  true
end

#file_system(user) ⇒ Object



11
12
13
# File 'lib/purvey/driver.rb', line 11

def file_system(user)
  Ftpd::DiskFileSystem.new(@dir)
end