Module: Bobkit::Assets
Instance Method Summary collapse
Methods included from FileHelpers
#copy_file, #create_file, #create_folder, #create_folder_for
Instance Method Details
#copy_asset(source, target = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/bobkit/assets.rb', line 5 def copy_asset(source, target = nil) target = if target "#{output_folder}/#{target}" else "#{assets_output_folder}/#{source}" end copy_entry "#{assets_folder}/#{source}", target end |