# # Copyright © 2013 # Nathan Currier # # Use, modification, and distribution are all subject to the # Boost Software License, Version 1.0. (See the accompanying # file LICENSE.md or at rideliner.tk/LICENSE.html). # # <description> #
module Bakery
module Ingredient class ScriptFile < Bakery::Ingredient::File def toBlockCommentLine line "##{super line}" end def initialize filename, shebang, *args, &block super filename, *args do if args.include? :shebang puts "#!/usr/bin/env #{shebang}" puts '' end unless args.include? :no_copyright puts '#' insertCopyrightNotice puts '#' puts '' end dispatch &block end end end end
end