commit
57da06f2ec
@ -10,7 +10,7 @@ module Guard
|
|||||||
# Guardfile template needed inside guard gem
|
# Guardfile template needed inside guard gem
|
||||||
def self.init(name)
|
def self.init(name)
|
||||||
if ::Guard::Dsl.guardfile_include?(name)
|
if ::Guard::Dsl.guardfile_include?(name)
|
||||||
::Guard::UI.info "Guardfile already include #{name} guard"
|
::Guard::UI.info "Guardfile already includes #{name} guard"
|
||||||
else
|
else
|
||||||
content = File.read('Guardfile')
|
content = File.read('Guardfile')
|
||||||
guard = File.read("#{::Guard.locate_guard(name)}/lib/guard/#{name}/templates/Guardfile")
|
guard = File.read("#{::Guard.locate_guard(name)}/lib/guard/#{name}/templates/Guardfile")
|
||||||
|
Loading…
Reference in New Issue
Block a user