Method: Keylime::FileKeychainSegment#create
- Defined in:
- lib/keylime/credential.rb
#create(fields = {}) ⇒ Object
93 94 95 96 97 98 99 100 |
# File 'lib/keylime/credential.rb', line 93 def create(fields = {}) raise('No fields given') if fields.empty? fields = stringify(fields) fields['ref'] = self new = FileKeychainObject.new(fields) write_file! entries + [new] new end |