Exception: RequiresPhaseArgumentError

Inherits:
HandcuffsError show all
Defined in:
lib/handcuffs/errors.rb

Instance Method Summary collapse

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 = <<-MESSAGE
    rake #{task} requires a phase argument.
    For example: #{task}[pre_restart]
  MESSAGE
  super(msg)
end