Class: Renuo::Cli::Commands::Ci::CheckDeploioStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/commands/ci/check_deploio_status.rb

Constant Summary collapse

TIMEOUT_IN_SECONDS =
600
INTERVAL_IN_SECONDS =
5

Instance Method Summary collapse

Instance Method Details

#runObject



17
18
19
20
21
22
23
24
25
# File 'lib/renuo/cli/commands/ci/check_deploio_status.rb', line 17

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