class Vagrant::Plugin::Remote::Host

Attributes

client[RW]

Public Class Methods

new(*_, **kwargs) click to toggle source
Calls superclass method
# File lib/vagrant/plugin/remote/host.rb, line 7
def initialize(*_, **kwargs)
  @client = kwargs.delete(:client)
  if @client.nil?
    raise ArgumentError,
      "Remote client is required for `#{self.class.name}`"
  end
  super
end

Public Instance Methods

detect?(env) click to toggle source

@return [Boolean]

# File lib/vagrant/plugin/remote/host.rb, line 17
def detect?(env)
  client.detect(env)
end