Sha256: 96a718c7375f9850596e5de414bd1bf270f730716dd4a9d081ffdca1bba58d39
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.14 | lib/docman/builders/drupal_drush_builder.rb |