Sha256: a3e2882042f6338ae160c5e86b58f26b6b9989f824d2c9f45d4be58e9234fb02

Contents?: true

Size: 382 Bytes

Versions: 8

Compression:

Stored size: 382 Bytes

Contents

module Legion::Extensions::Node::Transport::Messages
  class PublicKey < Legion::Transport::Message
    def routing_key
      'node.crypt.update_public_key'
    end

    def type
      'task'
    end

    def encrypt?
      false
    end

    def validate
      raise 'public_key should be a string' unless @options[:public_key].is_a?(String)

      @valid = true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lex-node-0.2.0 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.7 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.6 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.5 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.4 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.3 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.2 lib/legion/extensions/node/transport/messages/public_key.rb
lex-node-0.1.1 lib/legion/extensions/node/transport/messages/public_key.rb