Class: Textus::CLI::Verb::Serve

Inherits:
Textus::CLI::Verb show all
Defined in:
lib/textus/cli/verb/serve.rb

Overview

Launches the convergence daemon in the current process. Blocks forever; reclaims crashed leases and drains the queue each tick (Phase 3 adds scheduled TTL re-pull/sweep). CLI-only — agents enqueue work, they do not run daemons. Acts as the automation role (the build authority).

Instance Attribute Summary

Attributes inherited from Textus::CLI::Verb

#positional, #stdin

Instance Method Summary collapse

Methods inherited from Textus::CLI::Verb

command_name, #context_for, descendants, #emit, inherited, #initialize, needs_store?, option, options, parent_group, #parse, #resolved_role, #session_for

Constructor Details

This class inherits a constructor from Textus::CLI::Verb

Instance Method Details

#call(store) ⇒ Object



11
12
13
14
15
# File 'lib/textus/cli/verb/serve.rb', line 11

def call(store)
  call = Textus::Call.build(role: Textus::Role::AUTOMATION)
  Textus::Maintenance::Serve.new(container: store.container, call: call).run
  0
end