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

Version Path
docman-0.0.40 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.39 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.38 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.37 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.36 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.35 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.34 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.33 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.32 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.31 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.30 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.29 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.28 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.27 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.26 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.25 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.24 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.23 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.22 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.21 lib/docman/builders/drupal_drush_builder.rb