Exception: Omnibus::ProjectAlreadyDirty

Inherits:
Error
  • Object
show all
Defined in:
lib/omnibus/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ProjectAlreadyDirty

Returns a new instance of ProjectAlreadyDirty.



305
306
307
308
309
310
311
312
313
314
# File 'lib/omnibus/exceptions.rb', line 305

def initialize(project)
  name = project.name
  culprit = project.culprit.name

  super <<~EOH
    The project `#{name}' was already marked as dirty by `#{culprit}'. You cannot
    mark a project as dirty twice. This is probably a bug in Omnibus and should be
    reported.
  EOH
end