Sha256: 4520b9e91347a4c525f5b07d8e1936c93527d04f630096c3ca1a7a8ffe6966e8
Contents?: true
Size: 529 Bytes
Versions: 28
Compression:
Stored size: 529 Bytes
Contents
class Eco::API::UseCases::Default::Locations::TagPaths < Eco::API::Common::Loaders::UseCase name "create-tag-paths" type :other def main(session, options, usecase) CSV.open("tag_paths.csv", "w") do |csv| csv << ["Tag", "Path"] tag_paths.each do |values| csv << values end end end private def tag_paths @tag_paths ||= tagtree.tags.reverse.map do |tag| [tag, tagtree.path(tag).join("|")] end end def tagtree session.tagtree end end
Version data entries
28 entries across 28 versions & 1 rubygems