The `update_rubygems_cmd` variable is only used once, this should be simplified to:

```ruby
execute "update rubygems" do
  command value_for_platform(
    "ubuntu" => {
      "default" => "/usr/local/bin/update_rubygems"
    },
    "default" => "/usr/bin/update_rubygems"
  )
end
```