Use the block form since these are all replacements to the same file:

```
inrepace sbin/'rabbitmq-defaults' do |s|
  s.gsub! string1, string2
  ...
end
```