Class: Bricky::Requirements

Inherits:
Object
  • Object
show all
Defined in:
lib/bricky/requirements.rb

Instance Method Summary collapse

Instance Method Details

#check_and_executeObject



3
4
5
6
7
8
9
10
# File 'lib/bricky/requirements.rb', line 3

def check_and_execute
  if pending?
    Bricky.logger.error "Make sure you have the following requirements: " 
    Bricky.logger.error  "  - " + requirements.keys.join("\n  - ")
  else
    yield          
  end
end