Sha256: 7730d0396b5f86963f385c178505af416f233db7271f92f5b386aa15bbeb26b5

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

module Legion::Extensions::Node::Transport::Messages
  class RequestVaultToken < Legion::Transport::Message
    def routing_key
      'vault'
    end

    def message
      {
        function: 'push_vault_token',
        node_name: Legion::Settings[:client][:name],
        runner_class: 'Legion::Extensions::Node::Runners::Vault',
        public_key: Legion::Crypt.public_key
      }
    end

    def type
      'task'
    end

    def encrypt?
      false
    end

    def validate
      @valid = true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lex-node-0.2.0 lib/legion/extensions/node/transport/messages/request_vault_token.rb
lex-node-0.1.7 lib/legion/extensions/node/transport/messages/request_vault_token.rb
lex-node-0.1.6 lib/legion/extensions/node/transport/messages/request_vault_token.rb
lex-node-0.1.5 lib/legion/extensions/node/transport/messages/request_vault_token.rb
lex-node-0.1.4 lib/legion/extensions/node/transport/messages/request_vault_token.rb