Class | InterfaceLift::Catalog |
In: |
lib/catalog.rb
|
Parent: | Object |
catalog_path | [R] |
# File lib/catalog.rb, line 8 def initialize(catalog_path = nil) @catalog_path = catalog_path.nil? ? DEFAULT_CATELOG_PATH : catalog_path end
# File lib/catalog.rb, line 26 def git_repo?(theme) begin g = Git.open("#{catalog_path}/#{theme}") # If the path does not exist it will return an ArgumentError rescue ArgumentError => e return false end g.index.readable? end