Methods

Class/Module Index [+]

Quicksearch

Fog::Storage::Local::Directories

Public Instance Methods

all() click to toggle source
# File lib/fog/local/models/storage/directories.rb, line 12
def all
  data = Dir.entries(service.local_root).select do |entry|
    entry[0...1] != '.' && ::File.directory?(service.path_to(entry))
  end.map do |entry|
    {:key => entry}
  end
  load(data)
end
get(key) click to toggle source
# File lib/fog/local/models/storage/directories.rb, line 21
def get(key)
  if ::File.directory?(service.path_to(key))
    new(:key => key)
  else
    nil
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.