Exception: RequiresPhaseArgumentError
- Inherits:
-
HandcuffsError
- Object
- StandardError
- HandcuffsError
- RequiresPhaseArgumentError
- Defined in:
- lib/handcuffs/errors.rb
Instance Method Summary collapse
-
#initialize(task) ⇒ RequiresPhaseArgumentError
constructor
A new instance of RequiresPhaseArgumentError.
Constructor Details
#initialize(task) ⇒ RequiresPhaseArgumentError
Returns a new instance of RequiresPhaseArgumentError.
5 6 7 8 9 10 11 |
# File 'lib/handcuffs/errors.rb', line 5 def initialize(task) msg = " rake \#{task} requires a phase argument.\n For example: \#{task}[pre_restart]\n MESSAGE\n super(msg)\nend\n" |