Class: Knj::Fs

Inherits:
Object show all
Defined in:
lib/knj/fs/fs.rb

Defined Under Namespace

Classes: File, Filesystem, Ftp, Ssh

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Fs

Returns a new instance of Fs.



22
23
24
# File 'lib/knj/fs/fs.rb', line 22

def initialize(args = {})
  @args = args
end

Class Method Details

.driversObject



18
19
20
# File 'lib/knj/fs/fs.rb', line 18

def self.drivers
  return @drivers
end

Instance Method Details

#spawn_driverObject



26
27
28
29
# File 'lib/knj/fs/fs.rb', line 26

def spawn_driver
  class_name = Php4r.ucwords(@args[:driver])
  @driver = self.class.const_get(class_name).new(:fs => self, :args => @args)
end