2015-01-20 16:12:16 +01:00
|
|
|
# coding: utf-8
|
|
|
|
|
|
|
|
ENV['RACK_ENV'] = 'development'
|
2016-08-13 19:07:10 +02:00
|
|
|
task :load_config do
|
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler'
|
2015-01-20 16:12:16 +01:00
|
|
|
|
2016-08-13 19:07:10 +02:00
|
|
|
Bundler.require( :default, ENV['RACK_ENV'].to_sym ) # require tout les gems définis dans Gemfile
|
2015-01-20 16:12:16 +01:00
|
|
|
|
2016-08-13 19:07:10 +02:00
|
|
|
require_relative '../lib/ledger'
|
|
|
|
require_relative '../config/options'
|
|
|
|
end
|
2015-01-20 16:12:16 +01:00
|
|
|
|
2016-08-13 19:07:10 +02:00
|
|
|
desc 'Open pry with DB environment setup'
|
|
|
|
task pry: :load_config do
|
|
|
|
pry.binding
|
2015-01-20 16:12:16 +01:00
|
|
|
end
|