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

Version Path
patronus_fati-1.0.2 Rakefile
patronus_fati-1.0.1 Rakefile
patronus_fati-1.0.0 Rakefile
patronus_fati-0.9.32 Rakefile
patronus_fati-0.9.31 Rakefile
patronus_fati-0.9.30 Rakefile
patronus_fati-0.9.24 Rakefile
patronus_fati-0.9.23 Rakefile
patronus_fati-0.9.22 Rakefile
patronus_fati-0.9.21 Rakefile
patronus_fati-0.9.20 Rakefile
patronus_fati-0.9.19 Rakefile
patronus_fati-0.9.18 Rakefile
patronus_fati-0.9.17 Rakefile
patronus_fati-0.9.16 Rakefile
patronus_fati-0.9.15 Rakefile
patronus_fati-0.9.14 Rakefile
patronus_fati-0.9.13 Rakefile
patronus_fati-0.9.12 Rakefile
patronus_fati-0.9.11 Rakefile