module Veewee module Provider module Parallels module BoxCommand def destroy(options={}) unless self.exists? ui.error "Error:: You tried to destroy a non-existing box '#{name}'" exit -1 end if self.running? self.poweroff sleep 2 end command="prlctl delete '#{self.name}'" shell_exec("#{command}") end end end end end