Navigation Menu

Skip to content

Commit

Permalink
Added support for custom config
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Aug 19, 2011
1 parent 3a11aea commit e04c110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/guard/jammit.rb
Expand Up @@ -6,8 +6,7 @@ class Jammit < Guard

def initialize(watchers = [], options = {})
super

# init stuff here, thx!
@options.merge(options)
end

# ================
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e04c110

Please sign in to comment.