Adding a Resource at Run Time

Is it possible to add a resource at run time? If so, what is the function?

I imagine it is something like,

ruby_block “…” do
block do
#add my resource
end
end

Define resource, and use "not_if" or "only_if" - this way you can
control whenever resource will be executed or not.

On 11/28/2011 9:44 PM, bjbq4d@gmail.com wrote:

Is it possible to add a resource at run time? If so, what is the function?

I imagine it is something like,

ruby_block "..." do
block do
#add my resource
end
end