Class: Renuo::Cli::Commands::CheckDeploioStatus
- Inherits:
-
Object
- Object
- Renuo::Cli::Commands::CheckDeploioStatus
- Defined in:
- lib/renuo/cli/commands/check_deploio_status.rb
Overview
:nocov:
Constant Summary collapse
- TIMEOUT_IN_SECONDS =
600- INTERVAL_IN_SECONDS =
5
Instance Method Summary collapse
-
#initialize(options) ⇒ CheckDeploioStatus
constructor
A new instance of CheckDeploioStatus.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ CheckDeploioStatus
Returns a new instance of CheckDeploioStatus.
18 19 20 21 22 23 24 25 |
# File 'lib/renuo/cli/commands/check_deploio_status.rb', line 18 def initialize() @revision = .git_revision || `git rev-parse HEAD`.strip @app = .app || ENV.fetch("DEPLOIO_APP_NAME", nil) @project = .project || ENV.fetch("DEPLOIO_PROJECT", nil) abort "missing app name" if @app.nil? abort "missing project name" if @project.nil? end |
Instance Method Details
#run ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/renuo/cli/commands/check_deploio_status.rb', line 27 def run warn "DEPRECATED: Use 'renuo ci check-deploio-status' instead." 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 |