From e0dad41b0c04de7a35b4fbf44b23eea1b41d1e4e Mon Sep 17 00:00:00 2001 From: Maarten De Wispelaere Date: Thu, 24 Sep 2015 12:18:59 +0200 Subject: [PATCH] FIX: no exception for debian 8 needed, shutdown -h -H doesn't work ; use normal shutdown -h now --- plugins/guests/debian8/cap/halt.rb | 16 ---------------- plugins/guests/debian8/guest.rb | 9 --------- plugins/guests/debian8/plugin.rb | 21 --------------------- 3 files changed, 46 deletions(-) delete mode 100644 plugins/guests/debian8/cap/halt.rb delete mode 100644 plugins/guests/debian8/guest.rb delete mode 100644 plugins/guests/debian8/plugin.rb diff --git a/plugins/guests/debian8/cap/halt.rb b/plugins/guests/debian8/cap/halt.rb deleted file mode 100644 index 932281347..000000000 --- a/plugins/guests/debian8/cap/halt.rb +++ /dev/null @@ -1,16 +0,0 @@ -module VagrantPlugins - module GuestDebian8 - module Cap - class Halt - def self.halt(machine) - begin - machine.communicate.sudo("shutdown -h -H") - rescue IOError - # Do nothing, because it probably means the machine shut down - # and SSH connection was lost. - end - end - end - end - end -end diff --git a/plugins/guests/debian8/guest.rb b/plugins/guests/debian8/guest.rb deleted file mode 100644 index ec95e9e85..000000000 --- a/plugins/guests/debian8/guest.rb +++ /dev/null @@ -1,9 +0,0 @@ -module VagrantPlugins - module GuestDebian8 - class Guest < Vagrant.plugin("2", :guest) - def detect?(machine) - machine.communicate.test("cat /etc/issue | grep 'Debian' | grep '8'") - end - end - end -end diff --git a/plugins/guests/debian8/plugin.rb b/plugins/guests/debian8/plugin.rb deleted file mode 100644 index 1f566f5fa..000000000 --- a/plugins/guests/debian8/plugin.rb +++ /dev/null @@ -1,21 +0,0 @@ -require "vagrant" - -module VagrantPlugins - module GuestDebian8 - class Plugin < Vagrant.plugin("2") - name "Debian Jessie guest" - description "Debian Jessie guest support." - - guest("debian8", "debian") do - require File.expand_path("../guest", __FILE__) - Guest - end - - guest_capability("debian8", "halt") do - require_relative "cap/halt" - Cap::Halt - end - - end - end -end