Class: Carson::Runtime

Inherits:
Object
  • Object
show all
Includes:
Audit, Deliver, Govern, Local, Review, Session, Setup, Status
Defined in:
lib/carson/runtime.rb,
lib/carson/runtime/audit.rb,
lib/carson/runtime/local.rb,
lib/carson/runtime/setup.rb,
lib/carson/runtime/govern.rb,
lib/carson/runtime/review.rb,
lib/carson/runtime/status.rb,
lib/carson/runtime/deliver.rb,
lib/carson/runtime/session.rb,
lib/carson/runtime/local/sync.rb,
lib/carson/runtime/local/hooks.rb,
lib/carson/runtime/local/prune.rb,
lib/carson/runtime/local/onboard.rb,
lib/carson/runtime/local/template.rb,
lib/carson/runtime/local/worktree.rb,
lib/carson/runtime/review/utility.rb,
lib/carson/runtime/review/query_text.rb,
lib/carson/runtime/review/data_access.rb,
lib/carson/runtime/review/gate_support.rb,
lib/carson/runtime/review/sweep_support.rb

Defined Under Namespace

Modules: Audit, Deliver, Govern, Local, Review, Session, Setup, Status

Constant Summary collapse

EXIT_OK =

Shared exit-code contract used by all commands and CI smoke assertions.

0
EXIT_ERROR =
1
EXIT_BLOCK =
2
REPORT_MD =
"pr_report_latest.md".freeze
REPORT_JSON =
"pr_report_latest.json".freeze
REVIEW_GATE_REPORT_MD =
"review_gate_latest.md".freeze
REVIEW_GATE_REPORT_JSON =
"review_gate_latest.json".freeze
REVIEW_SWEEP_REPORT_MD =
"review_sweep_latest.md".freeze
REVIEW_SWEEP_REPORT_JSON =
"review_sweep_latest.json".freeze
DISPOSITION_TOKENS =
%w[accepted rejected deferred].freeze

Constants included from Govern

Govern::GOVERN_REPORT_JSON, Govern::GOVERN_REPORT_MD, Govern::TRIAGE_CI_FAILING, Govern::TRIAGE_NEEDS_ATTENTION, Govern::TRIAGE_READY, Govern::TRIAGE_REVIEW_BLOCKED

Constants included from Setup

Setup::WELL_KNOWN_REMOTES

Constants included from Local

Local::SUPERSEDED, Local::TEMPLATE_SYNC_BRANCH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Session

#session!, #session_clear!, #session_list, #update_session

Methods included from Deliver

#deliver!

Methods included from Status

#status!

Methods included from Review

#review_gate!, #review_sweep!

Methods included from Govern

#govern!, #govern_cycle!, #govern_loop!

Methods included from Setup

#setup!

Methods included from Local

#offboard!, #onboard!, #prune!, #prune_all!, #refresh!, #refresh_all!, #sync!, #template_apply!, #template_check!, #worktree_create!, #worktree_done!, #worktree_remove!

Methods included from Audit

#audit!

Constructor Details

#initialize(repo_root:, tool_root:, out:, err:, in_stream: $stdin, verbose: false) ⇒ Runtime

Runtime wiring for repository context, tool paths, and output streams.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/carson/runtime.rb', line 26

def initialize( repo_root:, tool_root:, out:, err:, in_stream: $stdin, verbose: false )
	@repo_root = repo_root
	@tool_root = tool_root
	@out = out
	@err = err
	@in = in_stream
	@verbose = verbose
	@config = Config.load( repo_root: repo_root )
	@git_adapter = Adapters::Git.new( repo_root: repo_root )
	@github_adapter = Adapters::GitHub.new( repo_root: repo_root )
	@template_sync_result = nil
end

Instance Attribute Details

#template_sync_resultObject (readonly)

Returns the value of attribute template_sync_result.



39
40
41
# File 'lib/carson/runtime.rb', line 39

def template_sync_result
  @template_sync_result
end