Sha256: ffd69dc401e8b0861c08447232e64d00dc5a3fb6f8c6ea1eab8fcb6970d46011
Contents?: true
Size: 606 Bytes
Versions: 6
Compression:
Stored size: 606 Bytes
Contents
require 'yaml' module Docman module Builders class DrupalDrushBuilder < Builder register_builder :drupal_drush_builder def execute 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems