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