Sha256: 1ab374c364456234e656885f8a091e079a598ad08a18fde1a8abb3f467563773
Contents?: true
Size: 957 Bytes
Versions: 3
Compression:
Stored size: 957 Bytes
Contents
require 'find' module Rho class RhoFSConnector class << self def get_app_path(appname) File.join(File.dirname(File.expand_path(__FILE__)), '../../apps/'+appname+'/') end def get_base_app_path File.join(File.dirname(File.expand_path(__FILE__)), '../../apps/') end def get_model_path(appname, modelname) File.join(File.dirname(File.expand_path(__FILE__)), '../../apps/'+appname+'/'+modelname+'/') end def get_db_fullpathname if defined? SYNC_DB_FILE File.join(File.dirname(File.expand_path(__FILE__)), SYNC_DB_FILE) else File.join(File.dirname(File.expand_path(__FILE__)), '../../db/syncdb.sqlite') end end def enum_files(paths, filename) # :yield: path Find.find(paths) do |path| if File.basename(path) == filename yield path end end end end end # RhoApplication end # Rho
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rhodes-0.1.0 | lib/rho/rhofsconnector.rb |
rhodes-0.1.1 | lib/rho/rhofsconnector.rb |
rhodes-0.1.2 | lib/rho/rhofsconnector.rb |