Sha256: 5b969c93c55abdb23b94bc64a2507bd5d4513cd68f812b535a5f84129c12f888
Contents?: true
Size: 523 Bytes
Versions: 5
Compression:
Stored size: 523 Bytes
Contents
module RouterosGuestPlugin module Cap class Halt def self.halt(machine) begin machine.ui.detail("Executing '/system shutdown' command") system ("vagrant ssh #{machine.name} -- '/system shutdown'") rescue IOError => e machine.ui.warn(e) # Ignore, this probably means connection closed because it # shut down. end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems