Exception: Tapjoy::AutoscalingBootstrap::Errors::ClobberRequired

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/tapjoy/autoscaling_bootstrap/errors.rb

Overview

Raise if we try to overwrite an unclobbered ASG

Instance Method Summary collapse

Constructor Details

#initializeClobberRequired

Returns a new instance of ClobberRequired.



6
7
8
9
10
11
# File 'lib/tapjoy/autoscaling_bootstrap/errors.rb', line 6

def initialize
  scaler_name = Tapjoy::AutoscalingBootstrap.scaler_name
  error = 'CLOBBER env var was not true, CREATE_AS_GROUP setting ' \
  "true and autoscale group '#{scaler_name}' exists so we are aborting."
  abort(error)
end