define :bundle_config do
  execute "bundle config #{params[:name]}" do
    user node['current_user']
    environment({
      'PATH' => "#{node['etc']['passwd'][node['current_user']]['dir']}/.rbenv/shims"
    })
  end
end

define :bundle_config do
  execute "#{node['etc']['passwd'][node['current_user']]['dir']}/.rbenv/shims/bundle config #{params[:name]}" do
    user node['current_user']
  end
end

Call user's rbenv bundle command directly
Call user's rbenv bundle command directly
