class BitteCI::Listener

Defined in:

bitte_ci/line.cr
bitte_ci/listener.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(log : Log, config : BitteCI::Listener::Config) #

[View source]

Class Method Detail

def self.print_line_events(line) #

[View source]

Instance Method Detail

def config : Config #

[View source]
def config=(config : Config) #

[View source]
def context #

[View source]
def create_allocation(db : DB::Database, alloc : AllocationPayload::Allocation, index : UInt64) #

[View source]
def discover(db) #

[View source]
def discover_apply(db, response) #

[View source]
def discover_handle(db, node_url) #

[View source]
def handle_allocation(db, alloc : AllocationPayload::Allocation, index) #

[View source]
def handle_evaluation(db, eval : Evaluation::EvaluationPayload::Evaluation) #

[View source]
def handle_job(db, job : Job::JobPayload::Job) #

[View source]
def handle_line(db, line) #

[View source]
def handle_node(db, node : Node::NodePayload::Node) #

[View source]
def headers #

[View source]
def job_id_to_pr_id(db : DB::Database, job_id : String) : Int64 | Nil #

[View source]
def listen(db, nomad_url) #

[View source]
def log : Log #

[View source]
def log=(log : Log) #

[View source]
def run #

TODO refactor to use Clear


[View source]
def ssl_context(config) #

[View source]
def update_allocation(db : DB::Database, alloc : AllocationPayload::Allocation, index : UInt64, old_alloc : ::Allocation) #

[View source]
def update_builds(db : DB::Database, alloc : AllocationPayload::Allocation) #

[View source]