Sha256: 5bf55af809a3bb9cd97c0047ce0d5188a221488e5278a336caddfb6469ad64f7
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
module VagrantPlugins module GuestOpenBSD module Cap class ChangeHostName def self.change_host_name(machine, name) if !machine.communicate.test("hostname | grep '^#{name}$'") machine.communicate.sudo("sh -c \"echo '#{name}' > /etc/myname\"") machine.communicate.sudo("hostname #{name}") end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.2.0 | vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/guests/openbsd/cap/change_host_name.rb |