1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00
twbs--bootstrap-sass/tasks/converter/fonts_conversion.rb
Gleb Mazovetskiy f076f64a4a Minor refactorings and rake less_to_scss
less_to_scss:

    $ echo '.p { #gradient > .horizontal(red,blue) }' | rake less_to_scss[master]
    .p { @include gradient-horizontal(red,blue) }
2013-12-20 23:20:01 +01:00

16 lines
433 B
Ruby

class Converter
module FontsConversion
def process_font_assets
log_status 'Processing fonts...'
files = read_files('fonts', bootstrap_font_files)
save_to = @save_to[:fonts]
files.each do |name, content|
save_file "#{save_to}/#{name}", content
end
end
def bootstrap_font_files
@bootstrap_font_files ||= get_paths_by_type('fonts', /\.(eot|svg|ttf|woff)$/)
end
end
end