Sha256: 0d6f02f9ca28c74262ff4efd76b753ed94fa18315906bde0ba28e01a920f8f75

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

module VagrantPlugins
  module GuestTinyCore
    module Cap
      class ChangeHostName
        def self.change_host_name(machine, name)
          if !machine.communicate.test("hostname | grep '^#{name}$'")
            machine.communicate.sudo("/usr/bin/sethostname #{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/tinycore/cap/change_host_name.rb