Exception: Railsmith::Pipeline::GuardNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/railsmith/pipeline/errors.rb

Overview

Raised when a step’s if:/unless: references a guard name not registered on the pipeline via the guard helper.

Instance Method Summary collapse

Constructor Details

#initialize(guard_name) ⇒ GuardNotFoundError

Returns a new instance of GuardNotFoundError.



16
17
18
# File 'lib/railsmith/pipeline/errors.rb', line 16

def initialize(guard_name)
  super("Pipeline guard :#{guard_name} is not defined on this pipeline")
end