Sha256: e711548c70218fba102787e1b58423d4ba35bb247ec90a7366b86dec84a130fd
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.7 | lib/docman/builders/drupal_drush_builder.rb |
docman-0.0.6 | lib/docman/builders/drupal_drush_builder.rb |