Sha256: 50a895c34b5284866fcbd4ccbc856a33cfd52c8c0f3ee08ab1e80c7796ef8914

Contents?: true

Size: 620 Bytes

Versions: 243

Compression:

Stored size: 620 Bytes

Contents

module Authentication; module Methods

  module Common
    include Net::SSH::Authentication::Constants

    private

      def socket(options={})
        @socket ||= stub("socket", :client_name => "me.ssh.test")
      end

      def transport(options={})
        @transport ||= MockTransport.new(options.merge(:socket => socket))
      end

      def session(options={})
        @session ||= begin
          sess = stub("auth-session", :logger => nil, :transport => transport(options))
          def sess.next_message
            transport.next_message
          end
          sess
        end
      end

  end

end; end

Version data entries

243 entries across 203 versions & 28 rubygems

Version Path
savant-echo-1.0.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-1.0.4 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/net-ssh-3.0.2/test/authentication/methods/common.rb
savant-echo-1.0.1 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-1.0.1 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.91 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.91 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.9 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.9 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.6 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.6 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.5 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.5 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.4 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.3 bin/packaging/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
savant-echo-0.1.3 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/net-ssh-3.2.0/test/authentication/methods/common.rb
net-ssh-3.3.0.beta1 test/authentication/methods/common.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/net-ssh-3.0.2/test/authentication/methods/common.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/net-ssh-3.0.2/test/authentication/methods/common.rb