lib/guard/dsl.rb
# Read the current `Guardfile` content.
#
# @param [String] the path to the Guardfile
#
Read the current `Guardfile` content.
Read the current ` Guardfile ` content .
def read_guardfile(guardfile_path)
        @@options[:guardfile_path]     = guardfile_path
        @@options[:guardfile_contents] = File.read(guardfile_path)
      rescue
        UI.error("Error reading file #{ guardfile_path }")
        exit 1
      end
def read_guardfile ( guardfile_path ) @@options [ :guardfile_path ] = guardfile_path @@options [ :guardfile_contents ] = File . read ( guardfile_path ) rescue UI . error ( "Error reading file #{ guardfile_path }" ) exit 1 end
Read the current `Guardfile` content.
Read the current ` Guardfile ` content .
guardfile_path
the path to the Guardfile
the path to the Guardfile