Class: Vagrant::Plugin::Remote::Host

Inherits:
V2::Host
  • Object
show all
Defined in:
lib/vagrant/plugin/remote/host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*_, **kwargs) ⇒ Host

Returns a new instance of Host.



10
11
12
13
14
15
16
17
# File 'lib/vagrant/plugin/remote/host.rb', line 10

def initialize(*_, **kwargs)
  @client = kwargs.delete(:client)
  if @client.nil?
    raise ArgumentError,
      "Remote client is required for `#{self.class.name}`"
  end
  super
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



8
9
10
# File 'lib/vagrant/plugin/remote/host.rb', line 8

def client
  @client
end

Instance Method Details

#detect?(env) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/vagrant/plugin/remote/host.rb', line 20

def detect?(env)
  client.detect(env)
end