module Bake::Modernize

Constants

ROOT
TEMPLATE_ROOT
VERSION

Public Class Methods

copy_template(source_path, destination_path) click to toggle source
# File lib/bake/modernize.rb, line 35
def self.copy_template(source_path, destination_path)
        glob = Build::Files::Glob.new(source_path, '**/*')
        
        glob.each do |path|
                full_path = File.join(destination_path, path.relative_path)
                
                if File.directory?(path)
                        FileUtils::Verbose.mkdir_p(full_path)
                else
                        FileUtils::Verbose.cp(path, full_path)
                end
        end
end
template_path_for(path) click to toggle source
# File lib/bake/modernize.rb, line 31
def self.template_path_for(path)
        TEMPLATE_ROOT + path
end