16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/generators/boring/font_awesome/ruby_gem/install/install_generator.rb', line 16
def import_font_awesome_stylesheet
say "Adding font awesome stylesheets", :green
stylesheet_font_awesome_imports = " \\n\n @import \"font-awesome-sprockets\";\n @import \"font-awesome\";\n RUBY\n\n if File.exist?(\"app/assets/stylesheets/application.css.scss\")\n append_to_file \"app/assets/stylesheets/application.css.scss\", stylesheet_font_awesome_imports\n elsif File.exist?(\"app/assets/stylesheets/application.scss\")\n append_to_file \"app/assets/stylesheets/application.scss\", stylesheet_font_awesome_imports\n else\n say <<~WARNING, :red\n ERROR: Looks like the application.css.scss is missing. Please rename the file and re-run the generator.\n WARNING\n end\nend\n"
|