Sha256: c48f97cb78d6fc60b48b3310cc3a6e58cd271b5e7c8698a84766f5fb29601f34
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
module FrontendGenerators; class FontAwesome def add_assets FileUtils.cp(font_awesome_css, css_destination) FileUtils.mkdir_p(fonts_dirname) FileUtils.cp(fonts, fonts_dirname) end def fonts Dir.glob("#{root}/assets/font_awesome/fonts/**/*") end def fonts_dirname File.join(Rails.root, "public", "fonts") end def css_destination File.join(Rails.root, "vendor", "assets", "stylesheets") end def font_awesome_css File.join(root, "assets", "font_awesome", "font_awesome.css") end def root File.expand_path("../../", File.dirname(__FILE__)) end end; end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
frontend-generators-0.0.1 | lib/frontend_generators/font_awesome.rb |