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.


21
22
23
24
25
26
27
# File 'lib/chefspec/deprecations.rb', line 21

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.


31
32
33
34
35
36
# File 'lib/chefspec/deprecations.rb', line 31

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

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