Sha256: 5259d36638a971147a35bfec4974bf5190a87092d040a70a5cfa64ed588d317f

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

module Legion::Extensions::Node::Runners
  module Beat
    include Legion::Extensions::Helpers::Transport

    def beat(status: 'healthy', **opts)
      log.debug 'sending hearbeat'
      messages::Beat.new(status: status).publish
      { success: true, status: status, **opts }
    end

    include Legion::Extensions::Helpers::Lex
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lex-node-0.1.7 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.6 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.5 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.4 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.3 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.2 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.1 lib/legion/extensions/node/runners/beat.rb
lex-node-0.1.0 lib/legion/extensions/node/runners/beat.rb