chef_gem 'treetop' do
  action :install
end

g = chef_gem 'treetop' do
  action :nothing
end

g.run_action :install

Gem.clear_paths

Install treetop at compile time
[DEPLOY] Install treetop at compile time