Class: RooOnRails::Checks::Heroku::PrebootEnabled
- Inherits:
-
EnvSpecific
- Object
- Base
- EnvSpecific
- RooOnRails::Checks::Heroku::PrebootEnabled
- Defined in:
- lib/roo_on_rails/checks/heroku/preboot_enabled.rb
Overview
Input context
-
heroku.api_client: a connected PlatformAPI client
-
heroku.app.EnvSpecific#env: an existing app name.
Instance Attribute Summary
Attributes inherited from EnvSpecific
Instance Method Summary collapse
Methods inherited from EnvSpecific
Methods inherited from Base
Methods included from RooOnRails::Checks::Helpers
Constructor Details
This class inherits a constructor from RooOnRails::Checks::EnvSpecific
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/roo_on_rails/checks/heroku/preboot_enabled.rb', line 18 def call status = client.app_feature.info(app_name, 'preboot') if status['enabled'] pass "preboot enabled on #{bold app_name}" else fail! "preboot disabled on #{bold app_name}" end end |
#intro ⇒ Object
14 15 16 |
# File 'lib/roo_on_rails/checks/heroku/preboot_enabled.rb', line 14 def intro 'Checking preboot status...' end |