ledgerrb/tasks/pry.rake

12 lines
189 B
Ruby
Raw Normal View History

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_relative '../app'
2016-08-13 19:07:10 +02:00
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