Sha256: 4cc3f082cbbb959b09c25036ce8d314b49d713cd52895e765cda998f0d802d5e

Contents?: true

Size: 783 Bytes

Versions: 4

Compression:

Stored size: 783 Bytes

Contents

module Legion::Extensions::Scheduler::Transport::Messages
  class Refresh < Legion::Transport::Message
    def routing_key
      'schedule'
    end

    def type
      'task'
    end

    def expiration
      5000
    end

    def encrypt?
      false
    end

    def message
      {
        function: 'refresh',
        runner_class: 'Legion::Extensions::Scheduler::Runners::Schedule'
      }
    end

    def message_example
      { function: 'push_cluster_secret',
        node_name: Legion::Settings[:client][:name],
        queue_name: "node.#{Legion::Settings[:client][:name]}",
        runner_class: 'Legion::Extensions::Node::Runners::Crypt',
        # public_key: Base64.encode64(Legion::Crypt.public_key) }
        public_key: Legion::Crypt.public_key }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lex-scheduler-0.1.3 lib/legion/extensions/scheduler/transport/messages/refresh.rb
lex-scheduler-0.1.2 lib/legion/extensions/scheduler/transport/messages/refresh.rb
lex-scheduler-0.1.1 lib/legion/extensions/scheduler/transport/messages/refresh.rb
lex-scheduler-0.1.0 lib/legion/extensions/scheduler/transport/messages/refresh.rb