class LabClient::Branch
Inspect Helper
Public Instance Methods
commit()
click to toggle source
# File lib/labclient/branches/branch.rb, line 11 def commit Commit.new(@table[:commit], response, client) end
inspect()
click to toggle source
# File lib/labclient/branches/branch.rb, line 7 def inspect "#<Branch name: #{name}>" end
pipelines()
click to toggle source
# File lib/labclient/branches/branch.rb, line 15 def pipelines project_id = collect_project_id client.pipelines.list(project_id, ref: name) end
wait_for_pipelines(total_time = 300, sleep_time = 15)
click to toggle source
Wait for Import / Set a Hard Limit
# File lib/labclient/branches/branch.rb, line 21 def wait_for_pipelines(total_time = 300, sleep_time = 15) Timeout.timeout(total_time) do loop do reload logger.info 'Waiting for Pipelines' unless quiet? break unless pipelines.empty? sleep sleep_time end end end