Sha256: 1997d5fc381efe8db58a4e861380d63fee7d8937528cdc4249c46e8b9d4b1411

Contents?: true

Size: 552 Bytes

Versions: 10

Compression:

Stored size: 552 Bytes

Contents

class Yakg
  module Backend
    if RUBY_PLATFORM.match("-darwin")
      require "yakg/backend/macos-keychain"
      extend Yakg::Backend::MacosKeychain
    elsif RUBY_PLATFORM.match("win32")
      require "yakg/backend/win32-dpapi"
      extend Yakg::Backend::Win32DPAPI
    else
      begin
        require 'dbus'
        DBus::SystemBus.instance
        require "yakg/backend/secret_service"
        extend Yakg::Backend::SecretService
      rescue
        require "yakg/backend/netrc"
        extend Yakg::Backend::Netrc
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yakg-0.1.11 lib/yakg/backend.rb
yakg-0.1.10 lib/yakg/backend.rb
yakg-0.1.9 lib/yakg/backend.rb
yakg-0.1.8 lib/yakg/backend.rb
yakg-0.1.7 lib/yakg/backend.rb
yakg-0.1.6 lib/yakg/backend.rb
yakg-0.1.5 lib/yakg/backend.rb
yakg-0.1.3 lib/yakg/backend.rb
yakg-0.0.11 lib/yakg/backend.rb
yakg-0.0.10 lib/yakg/backend.rb