Method: Luban::Deployment::Helpers::Utils#assure
- Defined in:
- lib/luban/deployment/helpers/utils.rb
#assure(type, *args) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/luban/deployment/helpers/utils.rb', line 31 def assure(type, *args) unless check_pass?(type, *args) if block_given? yield else abort "Aborted! #{type} dependency with #{args.inspect} are not met and no block is given to resolve it." end end end |