lib/buildr/core/application.rb
# Loads buildr.rb files from users home directory and project directory.
# Loads custom tasks from .rake files in tasks directory.
Loads buildr.rb files from users home directory and project directory.
Loads custom tasks from .rake files in tasks directory.
Loads buildr . rb files from users home directory and project directory . Loads custom tasks from . rake files in tasks directory .
def load_tasks 
      files = [ File.expand_path('buildr.rb', ENV['HOME']), 'buildr.rb' ].select { |file| File.exist?(file) }
      files += [ File.expand_path('buildr.rake', ENV['HOME']), File.expand_path('buildr.rake') ].
        select { |file| File.exist?(file) }.each { |file| warn "Please use '#{file.ext('rb')}' instead of '#{file}'" }
      files.each do |file|
        unless $LOADED_FEATURES.include?(file)
          load file
          $LOADED_FEATURES << file
        end
      end
      buildfile.enhance files
      true
    end
def load_tasks files = [ File . expand_path ( 'buildr.rb' , ENV [ 'HOME' ] ) , 'buildr.rb' ] . select { | file | File . exist? ( file ) } files += [ File . expand_path ( 'buildr.rake' , ENV [ 'HOME' ] ) , File . expand_path ( 'buildr.rake' ) ] . select { | file | File . exist? ( file ) } . each { | file | warn "Please use '#{file.ext('rb')}' instead of '#{file}'" } files . each do | file | unless $LOADED_FEATURES . include? ( file ) load file $LOADED_FEATURES << file end end buildfile . enhance files true end
Loads buildr.rb files from users home directory and project directory.
Loads buildr . rb files from users home directory and project directory .
#:nodoc: # TODO: this might need to be split up, look for deprecated features, better method name.