Fix code indention.
This commit is contained in:
parent
7e6e52a2c9
commit
d857134446
@ -25,6 +25,7 @@ module Guard
|
|||||||
# @option options [String] watchdir the director to watch
|
# @option options [String] watchdir the director to watch
|
||||||
# @option options [String] guardfile the path to the Guardfile
|
# @option options [String] guardfile the path to the Guardfile
|
||||||
# @option options [Boolean] watch_all_modifications watches all file modifications if true
|
# @option options [Boolean] watch_all_modifications watches all file modifications if true
|
||||||
|
#
|
||||||
def setup(options = {})
|
def setup(options = {})
|
||||||
@options = options
|
@options = options
|
||||||
@guards = []
|
@guards = []
|
||||||
@ -196,7 +197,7 @@ module Guard
|
|||||||
unless paths.empty?
|
unless paths.empty?
|
||||||
if @watch_all_modifications
|
if @watch_all_modifications
|
||||||
UI.debug "#{guard.class.name}##{task} with #{paths.inspect}"
|
UI.debug "#{guard.class.name}##{task} with #{paths.inspect}"
|
||||||
supervised_task(guard, task, paths.select {|f| !f.start_with?('!') })
|
supervised_task(guard, task, paths.select { |f| !f.start_with?('!') })
|
||||||
deletions = paths.collect { |f| f.slice(1..-1) if f.start_with?('!') }.compact
|
deletions = paths.collect { |f| f.slice(1..-1) if f.start_with?('!') }.compact
|
||||||
unless deletions.empty?
|
unless deletions.empty?
|
||||||
UI.debug "#{guard.class.name}#run_on_deletion with #{deletions.inspect}"
|
UI.debug "#{guard.class.name}#run_on_deletion with #{deletions.inspect}"
|
||||||
|
Loading…
Reference in New Issue
Block a user