.pryrc
changeset 0 3cc90e88c6ab
equal deleted inserted replaced
-1:000000000000 0:3cc90e88c6ab
       
     1 #!/usr/bin/ruby -*- ruby -*-
       
     2 
       
     3 require 'configurability'
       
     4 require 'loggability'
       
     5 require 'pathname'
       
     6 require 'strelka'
       
     7 
       
     8 $LOAD_PATH.unshift( '../Thingfish/lib', 'lib' )
       
     9 
       
    10 begin
       
    11 	require 'thingfish'
       
    12 	require 'thingfish/metastore/pggraph'
       
    13 
       
    14 	Loggability.level = :debug
       
    15 	Loggability.format_with( :color )
       
    16 
       
    17 	if File.exist?( 'config.yml' )
       
    18 		Strelka.load_config( 'config.yml' )
       
    19 		metastore = Thingfish::Metastore.create( 'pggraph' )
       
    20 	end
       
    21 
       
    22 rescue Exception => e
       
    23 	$stderr.puts "Ack! Libraries failed to load: #{e.message}\n\t" +
       
    24 		e.backtrace.join( "\n\t" )
       
    25 end
       
    26 
       
    27