From e04c1106a01b622e41f17a87309ba05643ad2109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20H=C3=B6rberg?= Date: Fri, 19 Aug 2011 23:45:25 +0300 Subject: [PATCH] Added support for custom config --- lib/guard/jammit.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/guard/jammit.rb b/lib/guard/jammit.rb index c8026a6..f53a09f 100644 --- a/lib/guard/jammit.rb +++ b/lib/guard/jammit.rb @@ -6,8 +6,7 @@ class Jammit < Guard def initialize(watchers = [], options = {}) super - - # init stuff here, thx! + @options.merge(options) end # ================ @@ -46,7 +45,7 @@ def run_on_change(paths) end def jammit - ::Jammit.load_configuration ::Jammit::DEFAULT_CONFIG_PATH + ::Jammit.load_configuration @options[:config] || ::Jammit::DEFAULT_CONFIG_PATH puts "Jamming" ::Jammit.packager.force = true ::Jammit.packager.precache_all