get ledger file from ENV

This commit is contained in:
Gwenhael Le Moine 2014-07-31 17:14:08 +02:00
parent 6b729e79f2
commit c5f9f51d24

View file

@ -5,7 +5,7 @@ module Ledger
module_function
@binary = 'ledger'
@file = '~/org/comptes.ledger'
@file = ENV[ 'LEDGER_FILE' ]
def run( options, command = '', command_parameters = '' )
`#{@binary} -f #{@file} #{options} #{command} #{command_parameters}`