Method: Aspera::Keychain::MacosSystem#get
- Defined in:
- lib/aspera/keychain/macos_security.rb
#get(options) ⇒ Object
153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/aspera/keychain/macos_security.rb', line 153 def get() Aspera.assert_type(, Hash){'options'} unsupported = .keys - %i[label] Aspera.assert(unsupported.empty?){"unsupported options: #{unsupported}"} info = @keychain.password(:find, :generic, label: [:label]) raise Error, 'not found' if info.nil? result = .clone result[:secret] = info['password'] result[:description] = info['icmt'] # cspell: disable-line return result end |