Class: Bard::CI::GithubActions::Job
- Inherits:
-
Struct
- Object
- Struct
- Bard::CI::GithubActions::Job
- Defined in:
- lib/bard/plugins/deploy/ci/github_actions.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
186 187 188 |
# File 'lib/bard/plugins/deploy/ci/github_actions.rb', line 186 def id json["id"] end |
#logs ⇒ Object
195 196 197 |
# File 'lib/bard/plugins/deploy/ci/github_actions.rb', line 195 def logs @logs ||= api.download_logs_by_job_id(id) end |
#time_elapsed ⇒ Object
190 191 192 193 |
# File 'lib/bard/plugins/deploy/ci/github_actions.rb', line 190 def time_elapsed Time.parse(json["completed_at"]).to_i - Time.parse(json["started_at"]).to_i end |