mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-12-26 09:59:18 +01:00
rake pry
This commit is contained in:
parent
433ce16c37
commit
464d7f34c1
1 changed files with 11 additions and 14 deletions
|
@ -1,20 +1,17 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
ENV['RACK_ENV'] = 'development'
|
ENV['RACK_ENV'] = 'development'
|
||||||
namespace :pry do
|
task :load_config do
|
||||||
task :load_config do
|
require 'rubygems'
|
||||||
require 'rubygems'
|
require 'bundler'
|
||||||
require 'bundler'
|
|
||||||
|
|
||||||
Bundler.require( :default, ENV['RACK_ENV'].to_sym ) # require tout les gems définis dans Gemfile
|
Bundler.require( :default, ENV['RACK_ENV'].to_sym ) # require tout les gems définis dans Gemfile
|
||||||
|
|
||||||
require_relative '../lib/ledger'
|
|
||||||
require_relative '../config/options'
|
|
||||||
end
|
|
||||||
|
|
||||||
desc 'Open pry with DB environment setup'
|
|
||||||
task pry: :load_config do
|
|
||||||
pry.binding
|
|
||||||
end
|
|
||||||
|
|
||||||
|
require_relative '../lib/ledger'
|
||||||
|
require_relative '../config/options'
|
||||||
|
end
|
||||||
|
|
||||||
|
desc 'Open pry with DB environment setup'
|
||||||
|
task pry: :load_config do
|
||||||
|
pry.binding
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue