Cross Reference:
xref
: /
ontohub
/
app
/
models
/
key
/
filesystem.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
filesystem.rb revision 32d73a0c89d35b25d2e2bcc22b6f83d911d363a3
require
'ssh_keys'
module
Key
::
Filesystem
extend
ActiveSupport
::
Concern
included
do
after_create
:
add_key
after_destroy
:
remove_key
end
def
add_key
SshKeys.new.refresh
_key
id
,
key
end
def
remove_key
SshKeys.new.remove
_key
id
end
end