Class: CheckDeploioStatus
- Inherits:
-
Object
- Object
- CheckDeploioStatus
- Defined in:
- lib/renuo/cli/app/check_deploio_status.rb
Overview
:nocov:
Constant Summary collapse
- TIMEOUT_IN_SECONDS =
600- INTERVAL_IN_SECONDS =
30- APP_NAME =
ENV.fetch "DEPLOIO_APP_NAME", nil
- PROJECT =
ENV.fetch "DEPLOIO_PROJECT", nil
- REVISION =
`git rev-parse HEAD`.strip
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/renuo/cli/app/check_deploio_status.rb', line 15 def run puts "(1/2) Checking build status for revision #{REVISION}..." poll "build" abort "build check timed out after #{TIMEOUT_IN_SECONDS} seconds" if build.nil? puts "(2/2) Checking release status for build #{build_name}..." poll "release" abort "release check timed out after #{TIMEOUT_IN_SECONDS} seconds" if release.nil? end |