2022-04-25 12:24:09 -05:00

26 lines
493 B
Ruby

module Vagrant
class Environment
module Remote
def self.prepended(klass)
klass.class_eval do
attr_reader :client
end
end
def initialize(opts={})
super
@client = opts[:client]
end
# Gets a target (machine) by name
#
# @param [String] machine name
# return [VagrantPlugins::CommandServe::Client::Machine]
def get_target(name)
return @client.target(name)
end
end
end
end