Fixed guard init

This commit is contained in:
Thibaud Guillaume-Gentil 2011-05-28 18:18:45 +02:00
parent 85ed0f8217
commit 42e4413cf2

View File

@ -1,7 +1,8 @@
module Guard
class Dsl
class << self
@@options = nil
# TODO: Add documentation to explain that it is possible to pass `:guardfile` (a Guardfile path)
# or `:guardfile_contents` (the content of a Guardfile). Hence this allows to use Guard::Dsl.evaluate_guardfile
# in a programmatic manner
@ -68,7 +69,7 @@ module Guard
end
def guardfile_contents
@@options[:guardfile_contents]
@@options ? @@options[:guardfile_contents] : ""
end
def guardfile_contents_usable?