In order to simply check which backend was chosen, I've added
attr_reader backend
in the class Keyring.
Now you can easily do things like
@kr = Keyring.new
unless %w(GnomeKeyring MacosxKeychain).include?(@kr.backend.class.name.split(/::/).last)
warn "Your password will not be stored persistently!"
end
Additionally, I limited the version of slop to be < 4.0 : slop has completely refactored the API
as of version 4.0
In order to simply check which backend was chosen, I've added
in the class
Keyring
.Now you can easily do things like
Additionally, I limited the version of
slop
to be < 4.0 :slop
has completely refactored the API as of version 4.0