Sha256: 082fcbf9502f8358208f23fd564cca07055b92e87c41aa3f9b7fc6e77abfc2d0
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
module VagrantPlugins module GuestPhoton module Cap class ChangeHostName def self.change_host_name(machine, name) machine.communicate.tap do |comm| unless comm.test("sudo hostname --fqdn | grep '#{name}'") comm.sudo("hostname #{name.split('.')[0]}") end 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/photon/cap/change_host_name.rb |