class VexorCiService
Schema Information¶ ↑
Table name: services
id :integer not null, primary key type :string(255) title :string(255) token :string(255) project_id :integer not null created_at :datetime not null updated_at :datetime not null active :boolean default(FALSE), not null project_url :string(255) subdomain :string(255) room :string(255) api_key :string(255)
Public Instance Methods
build_page(sha)
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 39 def build_page(sha) project_url + "/builds/sha/#{sha}" end
builds_path()
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 43 def builds_path "" end
commit_status(sha)
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 29 def commit_status(sha) response = HTTParty.get(commit_status_path(sha), verify: false) if response.code == 200 && response["status"] response["status"] else :error end end
commit_status_path(sha)
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 25 def commit_status_path(sha) project_url + "/api/builds/sha/#{sha}.json?token=#{token}" end
description()
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 56 def description "Continuous integration server from Vexor" end
execute(push_data)
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 71 def execute(push_data) # NOOP end
fields()
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 64 def fields [ { type: "text", name: "token", placeholder: "Vexor CI project specific token" }, { type: "text", name: "project_url", placeholder: "http://ci.vexor.io/projects/3"} ] end
status_img_path()
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 47 def status_img_path # project_url + "/status.png?ref=" + project.default_branch "" end
title()
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 52 def title "Vexor CI" end
to_param()
click to toggle source
# File lib/vx/gitlab_status_service/vexor_ci_service.rb, line 60 def to_param "vexor_ci" end