blob: b43636e61d31aea60dfca580d2599f591f576bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'chef/dsl/dsl_module'
class Chef
module DSL
#
# Methods in this module each return one Resource class (or none if there
# are no resources associated with the given DSL).
#
# run_context.resource_classes.service #=> Chef::Resource::RunitService
#
module ResourceCreation
module AutomaticResourceCreation
end
include AutomaticResourceCreation
module Deprecated
def method_missing(name, *args, &block)
if Chef::DSL::Resources.find_deprecated_classes(name)
public_send(name, *args, &block)
end
end
end
include Deprecated
end
end
end
|