Module: Chef::Sugar::Kitchen

Extended by:
Kitchen
Included in:
Kitchen
Defined in:
lib/chef/sugar/kitchen.rb

Instance Method Summary collapse

Instance Method Details

#kitchen?(node) ⇒ Boolean

Returns true if the current node is provisioned by Test Kitchen.

Parameters:

Returns:

  • (Boolean)

32
33
34
# File 'lib/chef/sugar/kitchen.rb', line 32

def kitchen?(node)
  !ENV['TEST_KITCHEN'].nil?
end