Sha256: 68982dd3a182b3d27121fd793c8fc7061f0f03caa7bca4298ccf2874c28a4181
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
module Cardio class Mod class Sow # Writing the card representations to yaml files in mod directories module YamlDump # write yaml to file def dump hash File.write filename, hash.to_yaml puts "#{filename} now contains #{hash.size} items".green end # @return [String] -- MOD_DIR/data/ENVIRONMENT.yml def filename @filename ||= File.join mod_path, "#{@podtype}.yml" end # @return Path def mod_path Mod.dirs.subpaths("data")[@mod] || raise(Card::Error::NotFound, "no data directory found for mod: #{@mod}") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
card-1.108.1 | lib/cardio/mod/sow/yaml_dump.rb |
card-1.108.0 | lib/cardio/mod/sow/yaml_dump.rb |
card-1.107.0 | lib/cardio/mod/sow/yaml_dump.rb |