Browse Source

copy example if config doesn't exist

pull/2/head
Marek Piasecki 5 years ago
parent
commit
14bca7020f
  1. 6
      tools/starter/configs_to_env.rb

6
tools/starter/configs_to_env.rb

@ -9,7 +9,11 @@ errors = []
# check existance
configs[:example].each do |config|
real_config = config[0...-8]
errors << "Missing #{real_config}" unless configs[:real].include? real_config
unless configs[:real].include?(real_config)
puts "Missing #{real_config} - copying from #{config}"
IO.copy_stream config, real_config
configs[:real] << real_config
end
end
# load configs

Loading…
Cancel
Save