Browse files

Added support for custom config

  • Loading branch information...
1 parent 3a11aea commit e04c1106a01b622e41f17a87309ba05643ad2109 @carlhoerberg carlhoerberg committed Aug 19, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/guard/jammit.rb
View
5 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

0 comments on commit e04c110

Please sign in to comment.