Class: Carson::Runtime

Inherits:
Object
  • Object
show all
Includes:
Audit, Govern, Lint, Local, Review, Setup
Defined in:
lib/carson/runtime.rb,
lib/carson/runtime/lint.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/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, Govern, Lint, Local, Review, Setup

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

Instance Method Summary collapse

Methods included from Review

#review_gate!, #review_sweep!

Methods included from Govern

#govern!, #govern_cycle!, #govern_loop!, #housekeep!

Methods included from Setup

#setup!

Methods included from Local

#inspect!, #normalise_branch_delete_error, #offboard!, #onboard!, #prepare!, #prune!, #prune_delete_stale_branch, #prune_force_delete_failed, #prune_force_delete_skipped, #prune_force_delete_stale_branch, #prune_force_delete_success, #prune_no_stale_branches, #prune_safe_delete_success, #prune_skip_stale_branch, #prune_stale_branch_entries, #prune_stale_branch_entry, #refresh!, #refresh_all!, #sync!, #template_apply!, #template_check!

Methods included from Audit

#audit!

Methods included from Lint

#lint_setup!

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
# 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 )
end