Method: CHBuild::Config::Before#validate!
- Defined in:
- lib/chbuild/config/before.rb
#validate!(before_commands) ⇒ Object
13 14 15 16 17 |
# File 'lib/chbuild/config/before.rb', line 13 def validate!(before_commands) @errors = [] @errors << 'Required' if before_commands.nil? @errors << 'Cannot be empty' if before_commands == [] end |