Sha256: e796732e33ad78aaf66bae2a6ae166a5102a02de91c5db4ca2f61d67fa97482a
Contents?: true
Size: 801 Bytes
Versions: 3
Compression:
Stored size: 801 Bytes
Contents
class WatchtowerAssetsGenerator < Rails::Generator::Base def manifest record do |m| m.directory File.join("public", "stylesheets", "watchtower") m.directory File.join("public", "stylesheets", "watchtower", "images") m.directory File.join("public", "stylesheets", "watchtower", "assets", "images") m.directory File.join("public", "stylesheets", "watchtower", "assets", "images", "buttons") m.directory File.join("public", "stylesheets", "watchtower", "assets", "images", "icons") m.directory File.join("public", "javascripts", "watchtower") root = File.join(File.dirname(__FILE__), "templates") Dir.glob(File.join(root, "**", "*.*")).each do |f| file = f.gsub("#{root}/", "") m.file file, file end end end end
Version data entries
3 entries across 3 versions & 1 rubygems