Merge pull request #148 from simi/patch-1

Correct string interpolation at guard init
This commit is contained in:
Michael Kessler 2011-10-02 06:20:17 -07:00
commit 1090e0f797

View File

@ -119,7 +119,7 @@ module Guard
# #
def init(guard_name = nil) def init(guard_name = nil)
if !File.exist?('Guardfile') if !File.exist?('Guardfile')
puts 'Writing new Guardfile to #{Dir.pwd}/Guardfile' puts "Writing new Guardfile to #{Dir.pwd}/Guardfile"
FileUtils.cp(File.expand_path('../templates/Guardfile', __FILE__), 'Guardfile') FileUtils.cp(File.expand_path('../templates/Guardfile', __FILE__), 'Guardfile')
elsif guard_name.nil? elsif guard_name.nil?
Guard::UI.error "Guardfile already exists at #{ Dir.pwd }/Guardfile" Guard::UI.error "Guardfile already exists at #{ Dir.pwd }/Guardfile"