Module: Guard::DeprecatedMethods

Included in:
Guard
Defined in:
lib/guard/deprecated_methods.rb

Instance Method Summary collapse

Instance Method Details

#add_guard(*args) ⇒ Object

Deprecated.

Use `Guard.add_plugin(name, options = {})` instead.



20
21
22
23
# File 'lib/guard/deprecated_methods.rb', line 20

def add_guard(*args)
  ::Guard::UI.deprecation(::Guard::Deprecator::ADD_GUARD_DEPRECATION)
  add_plugin(*args)
end

#get_guard_class(name, fail_gracefully = false) ⇒ Object

Deprecated.

Use `Guard::PluginUtil.new(name).plugin_class(fail_gracefully: fail_gracefully)` instead.



32
33
34
35
# File 'lib/guard/deprecated_methods.rb', line 32

def get_guard_class(name, fail_gracefully = false)
  ::Guard::UI.deprecation(::Guard::Deprecator::GET_GUARD_CLASS_DEPRECATION)
  ::Guard::PluginUtil.new(name).plugin_class(fail_gracefully: fail_gracefully)
end

#guard_gem_namesObject

Deprecated.

Use `Guard::PluginUtil.plugin_names` instead.



52
53
54
55
# File 'lib/guard/deprecated_methods.rb', line 52

def guard_gem_names
  ::Guard::UI.deprecation(::Guard::Deprecator::GUARD_GEM_NAMES_DEPRECATION)
  ::Guard::PluginUtil.plugin_names
end

#guards(filter = nil) ⇒ Object

Deprecated.

Use `Guard.plugins(filter)` instead.



10
11
12
13
# File 'lib/guard/deprecated_methods.rb', line 10

def guards(filter = nil)
  ::Guard::UI.deprecation(::Guard::Deprecator::GUARDS_DEPRECATION)
  plugins(filter)
end

#locate_guard(name) ⇒ Object

Deprecated.

Use `Guard::PluginUtil.new(name).plugin_location` instead.



42
43
44
45
# File 'lib/guard/deprecated_methods.rb', line 42

def locate_guard(name)
  ::Guard::UI.deprecation(::Guard::Deprecator::LOCATE_GUARD_DEPRECATION)
  ::Guard::PluginUtil.new(name).plugin_location
end