Sha256: 7431ddd14a5b6e81d50cdf87aeb488773e48c70fdbdd767851c1b339ecab4708

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

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

    def beat(status: 'active', **opts)
      log.debug 'sending hearbeat'
      messages::Beat.new(status: status).publish
      { success: true, status: status, version: Legion::VERSION || nil, **opts }
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lex-node-0.2.0 lib/legion/extensions/node/runners/beat.rb