Class: RooOnRails::Checks::Heroku::PrebootEnabled

Inherits:
EnvSpecific show all
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

#env

Instance Method Summary collapse

Methods inherited from EnvSpecific

#initialize, #signature

Methods inherited from Base

#initialize, requires, #run

Methods included from RooOnRails::Checks::Helpers

#bold, included

Constructor Details

This class inherits a constructor from RooOnRails::Checks::EnvSpecific

Instance Method Details

#callObject



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

#introObject



14
15
16
# File 'lib/roo_on_rails/checks/heroku/preboot_enabled.rb', line 14

def intro
  'Checking preboot status...'
end