15 16 17 18 19 20 21 22
# File 'lib/pec/init.rb', line 15 def create_sample_config unless File.exist?("Pec.yaml") open("Pec.yaml","w") do |e| YAML.dump(Pec::Configure::Sample.pec_file, e) end puts "create configure file Pec.yaml".green end end