.pryrc
author Mahlon E. Smith <mahlon@martini.nu>
Mon, 16 Jan 2017 12:47:50 -0800
changeset 11 b1f97f6063a3
parent 0 3cc90e88c6ab
permissions -rw-r--r--
Update for Configurability 3.x.

#!/usr/bin/ruby -*- ruby -*-

require 'configurability'
require 'loggability'
require 'pathname'
require 'strelka'

$LOAD_PATH.unshift( '../Thingfish/lib', 'lib' )

begin
	require 'thingfish'
	require 'thingfish/metastore/pggraph'

	Loggability.level = :debug
	Loggability.format_with( :color )

	if File.exist?( 'config.yml' )
		Strelka.load_config( 'config.yml' )
		metastore = Thingfish::Metastore.create( 'pggraph' )
	end

rescue Exception => e
	$stderr.puts "Ack! Libraries failed to load: #{e.message}\n\t" +
		e.backtrace.join( "\n\t" )
end