lib/buildr/core/application.rb
# Load/install all Gems specified in build.yaml file.
Load/install all Gems specified in build.yaml file.
Load / install all Gems specified in build . yaml file .
def load_gems 
      missing_deps, installed = listed_gems.partition { |gem| gem.is_a?(Gem::Dependency) }
      unless missing_deps.empty?
        newly_installed = Util::Gems.install(*missing_deps)
        installed += newly_installed
      end
      installed.each do |spec|
        if gem(spec.name, spec.version.to_s)
        end
      end
      @gems = installed
    end
def load_gems missing_deps , installed = listed_gems . partition { | gem | gem . is_a? ( Gem :: Dependency ) } unless missing_deps . empty? newly_installed = Util :: Gems . install ( * missing_deps ) installed += newly_installed end installed . each do | spec | if gem ( spec . name , spec . version . to_s ) end end @gems = installed end
Load/install all Gems specified in build.yaml file.
Load / install all Gems specified in build . yaml file .
#:nodoc: # TODO: is this intended to load rake tasks from the installed gems? # We should use a convention like .. if the gem has a _buildr.rb file, load it. #FileList[spec.require_paths.map { |path| File.expand_path("#{path}/*.rb", spec.full_gem_path) }]. #  map { |path| File.basename(path) }.each { |file| require file } #FileList[File.expand_path('tasks/*.rake', spec.full_gem_path)].each do |file| #  Buildr.application.add_import file #end