Class: RubyNative::CLI::Deploy
- Inherits:
-
Object
- Object
- RubyNative::CLI::Deploy
- 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
-
#initialize(argv) ⇒ Deploy
constructor
A new instance of Deploy.
- #run ⇒ Object
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
#run ⇒ Object
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 |