Sha256: 20b960809dcc4a7e8d030b3f5b9cf7ca3e190f924402f532e548e0beb6348cf1
Contents?: true
Size: 607 Bytes
Versions: 50
Compression:
Stored size: 607 Bytes
Contents
require "bundler/gem_tasks" task :environment do base_path = File.expand_path(File.join(File.dirname(__FILE__), 'lib')) $LOAD_PATH.unshift(base_path) unless $LOAD_PATH.include?(base_path) require 'patronus_fati' end task :database => [:environment] do DataMapper.setup(:default, ENV['DATABASE_URL'] || 'sqlite::memory:') DataMapper.repository(:default).adapter.resource_naming_convention = PatronusFati::NullTablePrefix DataMapper.finalize DataMapper.auto_upgrade! end desc "Start a pry session with the code loaded" task :console => [:database, :environment] do require 'pry' pry end
Version data entries
50 entries across 50 versions & 1 rubygems