Sha256: 81418153ce5ad3b5ebeefab24124159c0531de2a29f5ed5a4c40ac200a2dffb5

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

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

git_resources.each do |r|
  job "ls #{r.name}" do
    plan << { get: r, trigger: true }
    task = {
      task: "ls #{r.name}", config: {
        inputs: [name: r],
        platform: 'linux',
        image_resource: { type: 'docker-image', source: { repository: 'alpine/git' } },
        run: {
          path: 'ls',
          args: [r]
        }
      }
    }
    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/ls.rb
rudder-0.3.0 examples/groups/jobs/git_stuff/ls.rb
rudder-0.2.2 examples/groups/jobs/git_stuff/ls.rb
rudder-0.2.1 examples/groups/jobs/git_stuff/ls.rb
rudder-0.2.0 examples/groups/jobs/git_stuff/ls.rb