Sha256: bd58ef8e66c65933917e680f1cef7735cc26cbacd9850fa9f1a34283bd49b604
Contents?: true
Size: 249 Bytes
Versions: 1
Compression:
Stored size: 249 Bytes
Contents
#!/usr/bin/env ruby require 'yaml' hash = YAML.load(File.read('attributes.yml')) require 'fileutils' FileUtils.mkdir_p('../there/attributes') hash.each do |key, value| File.open("../there/attributes/#{key}", 'w'){|file| file.write(value) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunzi-0.0.1 | lib/templates/here/compile.rb |