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.60 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.59 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.58 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.57 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.56 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.55 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.54 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.53 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.52 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.51 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.50 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.49 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.48 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.47 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.46 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.45 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.44 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.43 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.42 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.41 lib/docman/builders/drupal_drush_builder.rb