Sha256: 7c325591066d5c1d385ada56b015096fbd597eaaab6f7cb930ab77a62307310c

Contents?: true

Size: 522 Bytes

Versions: 12

Compression:

Stored size: 522 Bytes

Contents

module Minke
  module Tasks
    class Fetch < Task

      def run args = nil
        @logger.info '### Fetching dependencies'

        if @generator_config.build_settings.build_commands.fetch != nil
          run_with_block do |pre_tasks, post_tasks|
            pre_tasks.call
            
            @generator_config.build_settings.build_commands.fetch.each do |command|
              run_command_in_container command
            end

            post_tasks.call
          end
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
minke-1.15.0 lib/minke/tasks/fetch.rb
minke-1.14.5 lib/minke/tasks/fetch.rb
minke-1.14.4 lib/minke/tasks/fetch.rb
minke-1.14.3 lib/minke/tasks/fetch.rb
minke-1.14.2 lib/minke/tasks/fetch.rb
minke-1.14.1 lib/minke/tasks/fetch.rb
minke-1.14.0 lib/minke/tasks/fetch.rb
minke-1.13.20 lib/minke/tasks/fetch.rb
minke-1.13.19 lib/minke/tasks/fetch.rb
minke-1.13.18 lib/minke/tasks/fetch.rb
minke-1.13.16 lib/minke/tasks/fetch.rb
minke-1.13.15 lib/minke/tasks/fetch.rb