Method: Pec::Configure#validate

Defined in:
lib/pec/configure.rb

#validate(config) ⇒ Object



26
27
28
29
30
31
32
33
34
35
# File 'lib/pec/configure.rb', line 26

def validate(config)
  %w(
    tenant
    image
    flavor
    networks
  ).each do |k|
    raise "#{config[0]}:host key #{k} is require" unless config[1][k]
  end
end