Class: Bard::CLI::CI::GithubActions::Job
- Inherits:
-
Struct
- Object
- Struct
- Bard::CLI::CI::GithubActions::Job
- Defined in:
- lib/bard/ci/github_actions.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
161 162 163 |
# File 'lib/bard/ci/github_actions.rb', line 161 def id json["id"] end |
#logs ⇒ Object
170 171 172 |
# File 'lib/bard/ci/github_actions.rb', line 170 def logs @logs ||= api.download_logs_by_job_id(id) end |
#time_elapsed ⇒ Object
165 166 167 168 |
# File 'lib/bard/ci/github_actions.rb', line 165 def time_elapsed Time.parse(json["completed_at"]).to_i - Time.parse(json["started_at"]).to_i end |