class SafeDb::Put

The put use case follows open and it adds secrets into an (encrypted at rest) envelope. Put can be called many times and when done, the lock use case can be called to commit all opened secrets into the configured storage engines.

Calling put before calling open or after calling lock is not allowed and will result in an error.

Put Pre-Conditions

At the point of calling the put use case

Attributes

credential_id[W]
credential_value[W]

Public Instance Methods

edit_verse() click to toggle source

Execute the act of validating and then putting the credential key and its value into the chapter and verse location, overwriting if need be.

# File lib/controller/edit/put.rb, line 25
def edit_verse()

  @verse.store( @credential_id, @credential_value )

end