Class: Chef::Resource
- Inherits:
-
Object
show all
- Defined in:
- lib/toaster/chef/failsafe_resource_parser.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_symbol, *args, &block) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/toaster/chef/failsafe_resource_parser.rb', line 20
def method_missing(method_symbol, *args, &block)
if enclosing_provider && enclosing_provider.respond_to?(method_symbol)
enclosing_provider.send(method_symbol, *args, &block)
else
$new_node.send(method_symbol, *args, &block)
end
end
|
Instance Method Details
#notifies(action, resource_spec, timing = :delayed) ⇒ Object
35
36
37
38
39
40
41
|
# File 'lib/toaster/chef/failsafe_resource_parser.rb', line 35
def notifies(action, resource_spec, timing=:delayed)
begin
super
rescue Object
nil
end
end
|
#resources(*args) ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/toaster/chef/failsafe_resource_parser.rb', line 28
def resources(*args)
begin
super
rescue Object
nil
end
end
|