Class: Vagrant::Plugin::Remote::Host
- Defined in:
- lib/vagrant/plugin/remote/host.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #detect?(env) ⇒ Boolean
-
#initialize(*_, **kwargs) ⇒ Host
constructor
A new instance of Host.
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
#client ⇒ Object
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
20 21 22 |
# File 'lib/vagrant/plugin/remote/host.rb', line 20 def detect?(env) client.detect(env) end |