Sha256: 97adb3774ee70104e5b65d9df0aeefffa7608b05e8c378a869fbe60809a1b5e3

Contents?: true

Size: 645 Bytes

Versions: 17

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

module RakeDependencies
  module Tasks
    class Fetch < RakeFactory::Task
      default_name :fetch
      default_description(RakeFactory::DynamicValue.new do |t|
        "Fetch #{t.dependency}"
      end)

      parameter :dependency, required: true
      parameter :download_task_name, default: :download
      parameter :extract_task_name, default: :extract

      action do |t|
        [
          Rake::Task[t.scope.path_with_task_name(t.download_task_name)],
          Rake::Task[t.scope.path_with_task_name(t.extract_task_name)]
        ].each(&:invoke)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rake_dependencies-3.10.0.pre.2 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.10.0.pre.1 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.9.0 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.8.0.pre.1 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.7.0 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.6.0.pre.8 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.6.0.pre.4 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.6.0.pre.3 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.6.0.pre.2 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.6.0.pre.1 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.5.0 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.4.0.pre.1 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.3.0 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.2.0.pre.7 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.2.0.pre.6 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.2.0.pre.5 lib/rake_dependencies/tasks/fetch.rb
rake_dependencies-3.2.0.pre.4 lib/rake_dependencies/tasks/fetch.rb