Merge branch 'paz/replace-dependency-on-hostname-exec' into 'main'

Replace `hostname` and `whoami` by method calls

See merge request !383
5 jobs for main in 5 minutes and 12 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Test
passed bundler:audit #213012

00:02:37

passed ruby:2.5 #213008

00:05:02

passed ruby:2.6 #213009

00:05:05

passed ruby:2.7 #213010

00:05:11

passed ruby:3.0 #213011

00:03:36