Module: Guard::Deprecated::Dsl::ClassMethods

Defined in:
lib/guard/deprecated/dsl.rb

Constant Summary collapse

EVALUATE_GUARDFILE =
Deprecated.

Use

‘Guard::Guardfile::Evaluator.new(options).evaluate_guardfile` instead.

to upgrade for Guard 2.0

See Also:

<<-EOS.gsub(/^\s*/, "")
  Starting with Guard 2.0 'Guard::Dsl.evaluate_guardfile(options)' is
  deprecated.

  Please use
  'Guard::Guardfile::Evaluator.new(options).evaluate_guardfile'
  instead.

  #{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-1'}
EOS

Instance Method Summary collapse

Instance Method Details

#evaluate_guardfile(options = {}) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/guard/deprecated/dsl.rb', line 35

def evaluate_guardfile(options = {})
  require "guard/guardfile/evaluator"
  require "guard/ui"

  UI.deprecation(EVALUATE_GUARDFILE)
  ::Guard::Guardfile::Evaluator.new(options).evaluate_guardfile
end