Sha256: 38be1d65b635f80b7141c0279c955363ffa97d7546ee672bef6316096b9ca28e

Contents?: true

Size: 575 Bytes

Versions: 5

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

git_resources = resources.values.select { |r| r.type == :git }

git_resources.each do |r|
  job "git log #{r.name}" do
    plan << { get: r, trigger: true }
    task = {
      task: "git log #{r.name}", config: {
        inputs: [name: r],
        platform: 'linux',
        image_resource: { type: 'docker-image', source: { repository: 'alpine/git' } },
        run: {
          path: 'git',
          args: ['--git-dir', File.join(r.name.to_s, '.git'),
                 '--no-pager', 'log']
        }
      }
    }
    plan << task
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rudder-0.3.1 examples/groups/jobs/git_stuff/log.rb
rudder-0.3.0 examples/groups/jobs/git_stuff/log.rb
rudder-0.2.2 examples/groups/jobs/git_stuff/log.rb
rudder-0.2.1 examples/groups/jobs/git_stuff/log.rb
rudder-0.2.0 examples/groups/jobs/git_stuff/log.rb