Add remote host plugin

This commit is contained in:
Chris Roberts 2022-02-18 16:34:33 -08:00 committed by Paul Hinze
parent f88254eb23
commit 7e9dad2b3e
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -0,0 +1,23 @@
module Vagrant
module Plugin
module Remote
class Host < V2::Host
attr_accessor :client
def initialize(*_, **kwargs)
@client = kwargs.delete(:client)
if @client.nil?
raise ArgumentError,
"Remote client is required for `#{self.class.name}`"
end
super
end
# @return [Boolean]
def detect?(env)
client.detect(env)
end
end
end
end
end