Class: CIRunner::Check::Github
- Defined in:
- lib/ci_runner/check/github.rb
Overview
Check class used when a project is configured to run its CI using GitHub actions.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
:private:.
Attributes inherited from Base
#commit, #name, #repository, #status
Instance Method Summary collapse
-
#download_log ⇒ See Client::Github#download_log
Download the log output for thig GitHub build.
-
#initialize(*args, id) ⇒ Github
constructor
A new instance of Github.
-
#provider ⇒ String
Used to tell the user which CI provider we are downloading the log output from.
Methods inherited from Base
Constructor Details
#initialize(*args, id) ⇒ Github
Returns a new instance of Github.
15 16 17 18 19 |
# File 'lib/ci_runner/check/github.rb', line 15 def initialize(*args, id) super(*args) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
:private:
11 12 13 |
# File 'lib/ci_runner/check/github.rb', line 11 def id @id end |
Instance Method Details
#download_log ⇒ See Client::Github#download_log
Download the log output for thig GitHub build.
33 34 35 36 37 |
# File 'lib/ci_runner/check/github.rb', line 33 def download_log github_client = Client::Github.new(Configuration::User.instance.github_token) github_client.download_log(@repository, @id) end |
#provider ⇒ String
Used to tell the user which CI provider we are downloading the log output from.
24 25 26 |
# File 'lib/ci_runner/check/github.rb', line 24 def provider "GitHub" end |