Module: Guard::Guardfile Deprecated

Defined in:
lib/guard/guardfile.rb,
lib/guard/guardfile/evaluator.rb,
lib/guard/guardfile/generator.rb

Overview

Deprecated.

Use instance methods of Evaluator and Generator instead.

See Also:

Defined Under Namespace

Classes: Evaluator, Generator

Class Method Summary collapse

Class Method Details

.create_guardfile(options = {}) ⇒ Object



19
20
21
22
# File 'lib/guard/guardfile.rb', line 19

def self.create_guardfile(options = {})
  ::Guard::UI.deprecation(::Guard::Deprecator::CREATE_GUARDFILE_DEPRECATION)
  Generator.new(options).create_guardfile
end

.initialize_all_templatesObject



37
38
39
40
# File 'lib/guard/guardfile.rb', line 37

def self.initialize_all_templates
  ::Guard::UI.deprecation(::Guard::Deprecator::INITIALIZE_ALL_TEMPLATES_DEPRECATION)
  Generator.new.initialize_all_templates
end

.initialize_template(plugin_name) ⇒ Object



28
29
30
31
# File 'lib/guard/guardfile.rb', line 28

def self.initialize_template(plugin_name)
  ::Guard::UI.deprecation(::Guard::Deprecator::INITIALIZE_TEMPLATE_DEPRECATION)
  Generator.new.initialize_template(plugin_name)
end