Sha256: 06543adf63c4c0e864189f6fb6de3454d83f25d72a9a9b83a9c59b95e8433e33
Contents?: true
Size: 320 Bytes
Versions: 5
Compression:
Stored size: 320 Bytes
Contents
module RouterosGuestPlugin module Cap class ChangeHostName def self.change_host_name(machine, name) system("vagrant ssh #{machine.name} -- '" + ":if ([/system identity get name] != \"#{name}\") do={ /system identity set name=\"#{name}\" }'") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems