Pass resource name to cron command?

Hi!

I am looking for how to re-use the name of the cron resource as a variable in the cron entry it writes.

In other words, I'd like to pass the name chef uses to refer to the the cron entry as a parameter to the script being called.

When I imagine this feature, I think there would be a variable such as #{resource_name} that provides 'foo' because it's in a chef entry defined by cron 'foo':

cron 'foo'
    minute '*'
    command '/usr/scripts/versatile --do=#{resource_name} >> /var/logs/scripts/#{resource_name}.log'
end

Thanks!

Jacob