Sha256: a766e215e83cffe8540e4fc7b82e8628576756b5d26766b76c186b513de48002
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
require 'coin' require 'sym/app/password/providers' module Sym module App module Password module Providers class DrbProvider attr_accessor :coin def initialize Coin.uri = Sym::Configuration.config.password_cache_arguments[:drb][:opts][:uri] self.coin = Coin end def alive? self.read('bogus') rescue nil self.coin.server_running? end def write(*args) coin.server.send(:write, *args) end def read(*args) coin.send(:read, *args) end end register DrbProvider end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sym-2.2.1 | lib/sym/app/password/providers/drb_provider.rb |
sym-2.2.0 | lib/sym/app/password/providers/drb_provider.rb |