module Excom::Plugins::Assertions

Public Instance Methods

assert() { || ... } click to toggle source
# File lib/excom/plugins/assertions.rb, line 5
def assert
  if yield
    success! unless state.has_success?
  else
    failure!
  end
end