Class: RubyNative::CLI::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_native/cli/deploy.rb

Constant Summary collapse

CONFIG_PATH =
"config/ruby_native.yml"
HOST =
ENV.fetch("RUBY_NATIVE_HOST", "https://rubynative.com")
POLL_INTERVAL =
5
POLL_TIMEOUT =
600
TokenExpiredError =
Class.new(StandardError)

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Deploy

Returns a new instance of Deploy.



16
17
# File 'lib/ruby_native/cli/deploy.rb', line 16

def initialize(argv)
end

Instance Method Details

#runObject



19
20
21
22
23
24
25
# File 'lib/ruby_native/cli/deploy.rb', line 19

def run
  load_config!
  ensure_authenticated!
  app_id = resolve_app_id!
  build = trigger_build(app_id)
  poll_build_status(app_id, build)
end