Skip to content

Commit

Permalink
Requested PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timmfin committed Jul 30, 2013
1 parent 9e77935 commit 84db64b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/guard.rb
Expand Up @@ -50,13 +50,11 @@ def setup(options = {})
@runner = ::Guard::Runner.new
@scope = { :plugins => [], :groups => [] }

@watchdirs = [ Dir.pwd ]
@watchdirs = [Dir.pwd]

if options[:watchdir]
# Ensure we have an array
options[:watchdir] = [ options[:watchdir] ] unless options[:watchdir].is_a? Enumerable

@watchdirs = options[:watchdir].map { |dir| File.expand_path dir }
@watchdirs = Array(options[:watchdir]).map { |dir| File.expand_path dir }
end

::Guard::UI.clear(:force => true)
Expand Down

0 comments on commit 84db64b

Please sign in to comment.