Sha256: 9af2b422dd9f40ffc994c8e43c2ecb420ceb70842e047621ad7738c3e3dd61b6
Contents?: true
Size: 700 Bytes
Versions: 66
Compression:
Stored size: 700 Bytes
Contents
require 'yaml' module Docman module Builders class DrupalDrushBuilder < Builder register_builder :drupal_drush_builder def execute return if @build_mode == :none #return unless @context.need_rebuild? puts 'Download drupal through drush' FileUtils.mkdir_p(@context['temp_path']) Dir.chdir @context['temp_path'] `drush dl drupal-#{@context.version} --yes` FileUtils.mkdir_p(@context['full_build_path']) FileUtils.cp_r(Dir["#{@context['temp_path']}/drupal-#{@context.version}/."], @context['full_build_path']) @context.version end def version @context.version end end end end
Version data entries
66 entries across 66 versions & 1 rubygems