From c5f9f51d24d8680bbc249b6920f0525a40342019 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 31 Jul 2014 17:14:08 +0200 Subject: [PATCH] get ledger file from ENV --- lib/ledger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ledger.rb b/lib/ledger.rb index 28982ba0..beef7b3d 100644 --- a/lib/ledger.rb +++ b/lib/ledger.rb @@ -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}`