Exception: Tapjoy::AutoscalingBootstrap::Errors::ELB::NameTooLong
- Inherits:
-
NameError
- Object
- NameError
- Tapjoy::AutoscalingBootstrap::Errors::ELB::NameTooLong
- Defined in:
- lib/tapjoy/autoscaling_bootstrap/errors/elb.rb
Overview
Raise if ELB Name is too long
Instance Method Summary collapse
-
#initialize ⇒ NameTooLong
constructor
A new instance of NameTooLong.
Constructor Details
#initialize ⇒ NameTooLong
Returns a new instance of NameTooLong.
17 18 19 20 21 22 |
# File 'lib/tapjoy/autoscaling_bootstrap/errors/elb.rb', line 17 def initialize elb_name = Tapjoy::AutoscalingBootstrap.elb_name error = "ELB Name too long: #{elb_name.length} characters. " \ 'Must be less than 32' abort(error) end |