Method: Marv::Project::Functions#copy_functions

Defined in:
lib/marv/project/builder/functions.rb

#copy_functionsObject

Copy functions



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/marv/project/builder/functions.rb', line 26

def copy_functions
  @task.shell.mute do
    files = copy_functions_files

    ::Dir.glob(::File.join(@project.functions_path, '*')).each do |file|
      unless files.include?(file)
        @task.copy_file file, ::File.join(@project.build_path, 'functions', ::File.basename(file)), :force => true
      end
    end
  end
end