Module: Chef::IndexQueue::Consumer::ClassMethods

Defined in:
lib/chef/index_queue/consumer.rb

Instance Method Summary collapse

Instance Method Details

#expose(*methods) ⇒ Object



23
24
25
26
# File 'lib/chef/index_queue/consumer.rb', line 23

def expose(*methods)
  @exposed_methods = Array(@exposed_methods)
  @exposed_methods += methods
end

#exposed_methodsObject



28
29
30
# File 'lib/chef/index_queue/consumer.rb', line 28

def exposed_methods
  @exposed_methods || []
end

#whitelisted?(method_name) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/chef/index_queue/consumer.rb', line 32

def whitelisted?(method_name)
  exposed_methods.include?(method_name)
end