SmartOS should be OmniOS

This commit is contained in:
Mitchell Hashimoto 2013-05-01 19:02:00 -07:00
parent 3052fd350f
commit 4d26f01b7b
4 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@ FEATURES:
IMPROVEMENTS:
- Setting hostnames works properly on SmartOS. [GH-1672]
- Setting hostnames works properly on OmniOS. [GH-1672]
- Better VBoxManage error detection on Windows systems. This avoids
some major issues where Vagrant would sometimes "lose" your VM. [GH-1669]
- Better detection of missing VirtualBox kernel drivers on Linux

View File

@ -1,5 +1,5 @@
module VagrantPlugins
module GuestSmartOS
module GuestOmniOS
module Cap
class ChangeHostName
def self.change_host_name(machine, name)

View File

@ -1,10 +1,10 @@
require "vagrant"
module VagrantPlugins
module GuestSmartOS
module GuestOmniOS
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("cat /etc/release | grep -i SmartOS")
machine.communicate.test("cat /etc/release | grep -i OmniOS")
end
end
end

View File

@ -1,17 +1,17 @@
require "vagrant"
module VagrantPlugins
module GuestSmartOS
module GuestOmniOS
class Plugin < Vagrant.plugin("2")
name "SmartOS guest."
description "SmartOS guest support."
name "OmniOS guest."
description "OmniOS guest support."
guest("smartos", "solaris") do
guest("omnios", "solaris") do
require File.expand_path("../guest", __FILE__)
Guest
end
guest_capability("smartos", "change_host_name") do
guest_capability("omnios", "change_host_name") do
require_relative "cap/change_host_name"
Cap::ChangeHostName
end