2022-04-25 12:26:33 -05:00

31 lines
751 B
Ruby

module Vagrant
module Plugin
module Remote
class Guest
# This module enables Guest for server mode
module Remote
# Add an attribute accesor for the client
# when applied to the Guest class
def self.prepended(klass)
klass.class_eval do
attr_accessor :client
end
end
def initialize(machine)
@logger = Log4r::Logger.new("vagrant::remote::guest")
@logger.debug("initializing guest with remote backend")
@machine = machine
@client = machine.client.guest
end
def detect?(machine)
@client.detect(machine)
end
end
end
end
end
end