Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1c7c6c29c0
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (16 sloc) 0.46 kB
module InterfaceLift
class Catalog
attr_reader :catalog_path
def initialize(catalog_path = nil)
@catalog_path = catalog_path.nil? ? DEFAULT_CATELOG_PATH : catalog_path
end
# Retrieve themes from specified catalog path
def themes
themes = []
Dir.glob("#{@catalog_path}/*").each do |item|
themes << item if File.directory? item
end
themes.map { |path| path.split("/").last }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.