module

Yozgat::DB::Deployments

Constants

ACTIVE_STATUSES = ["pending", "cloning", "building", "starting", "running"] of ::String

Class methods

commit_hash_ok?(hash : String) : Bool
Source
create_record!(project_id : Int64, env_id : Int64, commit_hash : String) : Yozgat::Deploy::Context
Source
environment_belongs?(project_id : Int64, env_id : Int64) : Bool
Source
fetch_env_slug(project_id : Int64, env_id : Int64) : String | Nil
Source
fetch_project_type(project_id : Int64) : String | Nil
Source
find(project_id : Int64, env_id : Int64, deployment_id : Int64) : Row | Nil
Source
list_for_environment(project_id : Int64, env_id : Int64) : Array(Row) | Nil
Source
list_for_project(project_id : Int64) : Array(ProjectListRow) | Nil
Source
mark_failed!(deployment_id : Int64, project_id : Int64) : Nil
Source
peek_status(deployment_id : Int64) : String | Nil
Source
read_logs(project_id : Int64, deployment_id : Int64, tail : Int32) : NamedTuple(status: String, deployLog: String, containerLog: String) | Nil
Source
stop_by_slug!(project_id : Int64, environment_id : Int64, deployment_slug : String) : Nil
Source
sync_host_port!(project_id : Int64, env_id : Int64, deployment_id : Int64, port : Int64) : Nil

Syncs the actual published host port (from the compose file) into the environment and the current deployment so the dashboard URL is correct.

Source
update_project_status!(project_id : Int64, status : String) : Nil
Source
update_status!(deployment_id : Int64, status : String) : Nil
Source

Nested types