Sha256: ede2a68f45f83ffbd4a664c32395902cf677463485f2ae39a60f7662141b2082

Contents?: true

Size: 359 Bytes

Versions: 64

Compression:

Stored size: 359 Bytes

Contents

module VagrantPlugins
  module GuestEsxi
    module Cap
      class ChangeHostName
        def self.change_host_name(machine, name)
          if !machine.communicate.test("localcli system hostname get | grep '#{name}'")
            machine.communicate.execute("localcli system hostname set -H '#{name}'")
          end
        end
      end
    end
  end
end

Version data entries

64 entries across 57 versions & 9 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/esxi/cap/change_host_name.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/esxi/cap/change_host_name.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/guests/esxi/cap/change_host_name.rb
vagrant-esxi-0.0.1 lib/vagrant-esxi/cap/change_host_name.rb