Sha256: c4dcfb67b6852d765c9372b1ad4a0e0ab5762438342bfaa7a6bb02519c65070d
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
class ConvertTheme::ConvertThemeGenerator < RubiGen::Base # NOTE: runtime_options[:source] needs to be passed in to #new def manifest record do |m| files = Dir[File.join(source_root, "**/*")].map do |f| f.gsub(source_root, "").gsub(%r{^/}, '') end directories = files.map { |f| File.dirname(f) }.uniq.sort directories.each do |dir| m.directory dir end files.sort.each do |f| next if File.directory?(File.join(source_root, f)) m.file f, f end end end end
Version data entries
3 entries across 3 versions & 1 rubygems