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.80 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.79 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.78 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.77 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.76 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.75 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.74 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.73 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.72 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.71 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.70 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.69 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.68 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.67 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.66 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.65 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.64 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.63 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.62 lib/docman/builders/drupal_drush_builder.rb
docman-0.0.61 lib/docman/builders/drupal_drush_builder.rb