Sha256: 41200fad5505f13301f8cfeadab1c749853e92fd6e94db567cff11489671ce98

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

vals = vars[:some_values]

resource :timer, :time do
  # The source field can also be assigned via a method
  source(interval: '5m')
end

vals.each do |val|
  job "echo #{val}" do
    plan << { get: :timer, trigger: true }
    plan << { task: 'print', config: {
      platform: 'linux',
      image_resource: { type: 'docker-image', source: { repository: 'busybox' }},
      run: {
        path: 'echo',
        args: ['Value: ', val]
      }
      }
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rudder-0.3.1 examples/vars/vars_pipeline.rb
rudder-0.3.0 examples/vars/vars_pipeline.rb