Sha256: 294da0c7d05d8bc6cdaced2ee1c1b4f6a62948367a16e2dffce907b40e2fef3a

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 Bytes

Contents

module Lolp
  class Client
    module Publickey
      def publickeys
        get('v1/pubkeys')
      end

      def create_publickey(name, key)
        post('v1/pubkeys', { name: name, key: key })
      end

      def delete_publickey(name)
        delete("v1/pubkeys/#{name}")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lolp-0.8.2 lib/lolp/client/publickey.rb
lolp-0.8.1 lib/lolp/client/publickey.rb
lolp-0.8.0 lib/lolp/client/publickey.rb
lolp-0.7.0 lib/lolp/client/publickey.rb
lolp-0.6.0 lib/lolp/client/publickey.rb
lolp-0.5.0 lib/lolp/client/publickey.rb