Sha256: aabe8fb1f640896722029c40cccf7dc1e252f237b748a9bbafcd836a36223776
Contents?: true
Size: 613 Bytes
Versions: 8
Compression:
Stored size: 613 Bytes
Contents
require 'veewee/provider/core/helper/ssh' module Veewee module Provider module Core module BoxCommand def halt(options={}) if self.running? if options["force"]==true self.poweroff else self.exec("echo '#{definition.shutdown_cmd}' > /tmp/shutdown.sh") self.exec("chmod +x /tmp/shutdown.sh") self.exec(sudo("/tmp/shutdown.sh")) end else raise Veewee::Error,"Box is not running" end end end # Module end # Module end # Module end # Module
Version data entries
8 entries across 8 versions & 1 rubygems