Sha256: ad4dfac91afd39dad89159e7723e4bee5eb47c69cf4e39494e2ab074737fcfcb

Contents?: true

Size: 686 Bytes

Versions: 3

Compression:

Stored size: 686 Bytes

Contents

module Rho
  class RhoFSConnector

    class << self
	
      def get_app_path(appname)
		    'apps/'+appname+'/'
      end
      
      def get_base_app_path
	      'apps/'  
      end

      def get_model_path(appname, modelname)
		    'apps/'+appname+'/'+modelname+'/'  
      end

	    def get_db_fullpathname
  		  if defined? SYNC_DB_FILE
  			  SYNC_DB_FILE
  		  else
  			  'syncdb_.dbs'
  		  end
  	  end
	  
      def enum_files(paths, filename) # :yield: path
		yield get_app_path('Rhosugar/Account') + filename
		yield get_app_path('Rhosugar/Case') + filename  
		yield get_app_path('Rhosugar/Employee') + filename  
  	  end
		  
    end

  end # RhoApplication
end # Rho

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhodes-0.1.1 lib/rho/rhofsconnectorME.rb
rhodes-0.1.0 lib/rho/rhofsconnectorME.rb
rhodes-0.1.2 lib/rho/rhofsconnectorME.rb