Sha256: 073294fdcf1a75cb112023cb174c40f93101035083528fce896391bc2e3e6593

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

time_resources = resources.values.select { |r| r.type == :time }

time_resources.each do |r|
  job :hello do
    plan << { get: r, trigger: true }
    plan << { task: 'print_hello', config: {
      platform: 'linux',
      image_resource: { type: 'docker-image', source: { repository: 'busybox' } },
      run: {
        path: 'echo',
        args: ['Hello']
      }
    } }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rudder-0.3.1 examples/groups/jobs/bash_stuff/hello.rb
rudder-0.3.0 examples/groups/jobs/bash_stuff/hello.rb
rudder-0.2.2 examples/groups/jobs/bash_stuff/hello.rb
rudder-0.2.1 examples/groups/jobs/bash_stuff/hello.rb
rudder-0.2.0 examples/groups/jobs/bash_stuff/hello.rb