Class: RooOnRails::Checks::EnvSpecific
- Defined in:
- lib/roo_on_rails/checks/env_specific.rb
Overview
Base class for checks that are applicable per-environment. The ‘env` passed to the initializer becomes part of the check signature.
Direct Known Subclasses
Environment, Heroku::AppExists, Heroku::DrainsMetrics, Heroku::MetricsBridgeConfigured, Heroku::PrebootEnabled, Papertrail::All, Papertrail::DrainExists, Papertrail::SystemExists, Papertrail::SystemNamed
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(**options) ⇒ EnvSpecific
constructor
A new instance of EnvSpecific.
- #signature ⇒ Object
Methods inherited from Base
Methods included from Helpers
Constructor Details
#initialize(**options) ⇒ EnvSpecific
Returns a new instance of EnvSpecific.
10 11 12 13 |
# File 'lib/roo_on_rails/checks/env_specific.rb', line 10 def initialize(**) super() @env = @options[:env] end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
8 9 10 |
# File 'lib/roo_on_rails/checks/env_specific.rb', line 8 def env @env end |
Instance Method Details
#signature ⇒ Object
15 16 17 |
# File 'lib/roo_on_rails/checks/env_specific.rb', line 15 def signature super + [@env] end |