Class: Vx::ServiceConnector::Github::Notices
- Inherits:
-
Struct
- Object
- Struct
- Vx::ServiceConnector::Github::Notices
- Defined in:
- lib/vx/service_connector/github/notices.rb
Instance Attribute Summary collapse
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
Instance Attribute Details
#repo ⇒ Object
Returns the value of attribute repo
4 5 6 |
# File 'lib/vx/service_connector/github/notices.rb', line 4 def repo @repo end |
#session ⇒ Object
Returns the value of attribute session
4 5 6 |
# File 'lib/vx/service_connector/github/notices.rb', line 4 def session @session end |
Instance Method Details
#create(build_sha, build_status, build_url, description) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vx/service_connector/github/notices.rb', line 6 def create(build_sha, build_status, build_url, description) if status = github_status(build_status) begin session.create_status( repo.full_name, build_sha, status, description: description, target_url: build_url, context: "ci/vexor" ) rescue Octokit::UnprocessableEntity, Octokit::Unauthorized end end end |