Sha256: 52182e8724fc831cb128646bd2f90678be97afe5c40e8a361ba2d0e91c8450d3

Contents?: true

Size: 814 Bytes

Versions: 5

Compression:

Stored size: 814 Bytes

Contents

#!/usr/bin/env ruby

# raise "Please supply database path" unless ARGV[0]

$LOAD_PATH.unshift './lib'
$LOAD_PATH.unshift './spec'
$LOAD_PATH.unshift './tasks'
ENV['RACK_ENV'] = 'development'
require 'sequel'
require 'logger'
#DATABASE_CREDENTIALS = {logger: Logger.new($stdout), adapter: "sqlite", database: ARGV[0], :encoding => 'utf8'}.tap { |it| puts it }
DATABASE_CREDENTIALS = {adapter: "postgres", database: "postgres", username: 'postgres', password: 'postgres', host: "localhost", :encoding => 'utf8'}

connection = Sequel.connect(DATABASE_CREDENTIALS)
connection.timezone = :utc
# Uncomment these lines to open a pry session for inspecting the database


require 'pact_broker/db'
require 'pact_broker'
require 'support/test_data_builder'
puts "about to pry"

require 'pry'; pry(binding);
puts "after pry"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pact_broker-2.79.1 script/pry.rb
pact_broker-2.79.0 script/pry.rb
pact_broker-2.78.1 script/pry.rb
pact_broker-2.78.0 script/pry.rb
pact_broker-2.77.0 script/pry.rb