Ignore tasks by regexps
This commit is contained in:
@@ -5,7 +5,7 @@ module Burden
|
||||
|
||||
def initialize
|
||||
@storage = :active_record
|
||||
@ignored_tasks = [:environment]
|
||||
@ignored_tasks = [/environment/]
|
||||
end
|
||||
|
||||
module Helper
|
||||
|
||||
@@ -42,7 +42,7 @@ module Burden
|
||||
end
|
||||
|
||||
def ignored?
|
||||
Burden.config.ignored_tasks.include?(name.to_sym)
|
||||
Burden.config.ignored_tasks.collect{ |r| (name =~ r) ? 1 : 0 }.map(&:to_i).inject(:+) != 0
|
||||
end
|
||||
|
||||
def save_statistics
|
||||
|
||||
Reference in New Issue
Block a user