Class: ChefSpec::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/chefspec/deprecations.rb

Class Method Summary collapse

Class Method Details

.define_runner_method(resource_name) ⇒ Object

Deprecated.

define_runner_method is deprecated. Please use ChefSpec.define_matcher instead.


25
26
27
28
29
30
31
# File 'lib/chefspec/deprecations.rb', line 25

def self.define_runner_method(resource_name)
  deprecated "`ChefSpec::Runner.define_runner_method' is deprecated." \
    " It is being used in the #{resource_name} resource matcher." \
    " Please use `ChefSpec.define_matcher' instead."

  ChefSpec.define_matcher(resource_name)
end

.new(*args, &block) ⇒ Object

Deprecated.

new is deprecated. Please use SoloRunner or ServerRunner instead.


35
36
37
38
39
40
# File 'lib/chefspec/deprecations.rb', line 35

def self.new(*args, &block)
  deprecated "`ChefSpec::Runner' is deprecated. Please use" \
    " `ChefSpec::SoloRunner' or `ChefSpec::ServerRunner' instead."

  ChefSpec::SoloRunner.new(*args, &block)
end