22 lines
563 B
Ruby
22 lines
563 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
require "vagrant/capability_host"
|
|
|
|
module Vagrant
|
|
# This class handles host-OS specific interactions. It is responsible for
|
|
# detecting the proper host OS implementation and delegating capabilities
|
|
# to plugins.
|
|
#
|
|
# See {Guest} for more information on capabilities.
|
|
class Host
|
|
include CapabilityHost
|
|
|
|
autoload :Remote, "vagrant/host/remote"
|
|
|
|
def initialize(host, hosts, capabilities, env)
|
|
initialize_capabilities!(host, hosts, capabilities, env)
|
|
end
|
|
end
|
|
end
|