We should avoid using back ticks whenever possible. Since we write this in ruby, it can simply be achieved by:
```ruby
require 'socket'
host_name = Socket.gethostname
```