Sha256: 5d3bfc129f725e7040724c5754f7f057f3bdf82d8ab0bd7343110e043239af1d

Contents?: true

Size: 479 Bytes

Versions: 4

Compression:

Stored size: 479 Bytes

Contents

module Vagrant
  module Plugin
    module Remote
      class Host < V2::Host
        attr_accessor :client

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

        # @return [Boolean]
        def detect?(env)
          client.detect(env)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.6.0 lib/vagrant/plugin/remote/host.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/lib/vagrant/plugin/remote/host.rb
vagrant-unbundled-2.3.3.0 lib/vagrant/plugin/remote/host.rb
vagrant-unbundled-2.3.2.0 lib/vagrant/plugin/remote/host.rb