Merge pull request #148 from simi/patch-1
Correct string interpolation at guard init
This commit is contained in:
commit
1090e0f797
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user