class Guard::Dsl

def evaluate_guardfile(options = {})

Raises:
  • (ArgumentError) - when options are not a Hash

Options Hash: (**options)
  • guardfile_contents (String) -- a string representing the content of a valid Guardfile
  • guardfile (String) -- the path to a valid Guardfile
  • groups (Array) -- the groups to evaluate
def evaluate_guardfile(options = {})
  raise ArgumentError.new('No option hash passed to evaluate_guardfile!') unless options.is_a?(Hash)
  @@options = options.dup
  fetch_guardfile_contents
  instance_eval_guardfile(guardfile_contents_with_user_config)
end