@omer-g 
This piece of code:
`code "cp -r #{node.solr.extracted}/dist #{node.solr.lib}"
 notifies :restart, resources(:service => "jetty")
`

Will be replaced by this:
`SolrHelper.run_code_and_restart_jetty("cp -r #{node.solr.extracted}/dist #{node.solr.lib}", self)`
I don't see much drying happening here, two shorts standard chef lines are replaced by one long line.

I liked the idea of just using a simple method to encapsulate the calls, but it ended up being much bulkier than your first suggestion.