module Vagrant::Vagrantfile::Remote

Public Class Methods

new(*_, client:) click to toggle source
# File lib/vagrant/vagrantfile/remote.rb, line 14
def initialize(*_, client:)
  @client = client
  @config = ConfigWrapper.new(client: client)
end
prepended(klass) click to toggle source

Add an attribute reader for the client when applied to the Machine class

# File lib/vagrant/vagrantfile/remote.rb, line 8
def self.prepended(klass)
  klass.class_eval do
    attr_reader :client
  end
end

Public Instance Methods

machine(name, provider, _, _, _) click to toggle source

@return [Machine]

# File lib/vagrant/vagrantfile/remote.rb, line 20
def machine(name, provider, _, _, _)
  client.machine(name, provider)
end
machine_config(name, provider, _, _, validate_provider=true) click to toggle source
# File lib/vagrant/vagrantfile/remote.rb, line 28
def machine_config(name, provider, _, _,  validate_provider=true)
  client.machine_config(name, provider, validate_provider)
end
machine_names() click to toggle source
# File lib/vagrant/vagrantfile/remote.rb, line 24
def machine_names
  client.target_names
end