lib/thingfish/metastore/pggraph.rb
changeset 16 87b0a389b804
parent 15 38ea95105574
child 18 e18bc5021028
equal deleted inserted replaced
15:38ea95105574 16:87b0a389b804
    30 	REVISION = %q$Revision: 686fbfe638bd $
    30 	REVISION = %q$Revision: 686fbfe638bd $
    31 
    31 
    32 	# The data directory that contains migration files.
    32 	# The data directory that contains migration files.
    33 	#
    33 	#
    34 	DATADIR = if ENV['THINGFISH_METASTORE_PGGRAPH_DATADIR']
    34 	DATADIR = if ENV['THINGFISH_METASTORE_PGGRAPH_DATADIR']
    35 				   Pathname( ENV['PEDIA_DATADIR'] )
    35 				   Pathname( ENV['THINGFISH_METASTORE_PGGRAPH_DATADIR'] )
    36 			   elsif Gem.loaded_specs[ 'thingfish-metastore-pggraph' ] && File.exist?( Gem.loaded_specs['thingfish-metastore-pggraph'].datadir )
    36 			   elsif Gem.loaded_specs[ 'thingfish-metastore-pggraph' ] && File.exist?( Gem.loaded_specs['thingfish-metastore-pggraph'].datadir )
    37 				   Pathname( Gem.loaded_specs['thingfish-metastore-pggraph'].datadir )
    37 				   Pathname( Gem.loaded_specs['thingfish-metastore-pggraph'].datadir )
    38 			   else
    38 			   else
    39 				   Pathname( __FILE__ ).dirname.parent.parent.parent + 'data/thingfish-metastore-pggraph'
    39 				   Pathname( __FILE__ ).dirname.parent.parent.parent + 'data/thingfish-metastore-pggraph'
    40 			   end
    40 			   end