Sha256: 2b9be68dc37a8f6818ec93e7b4fcee306df5e63ab023951ad0ec6be5ae5225ba
Contents?: true
Size: 387 Bytes
Versions: 5
Compression:
Stored size: 387 Bytes
Contents
module Kubec class Kubernetes # :nodoc: class CronJob < Config api_version 'batch/v1beta1' def schedule(at) spec[:schedule] = at end def template(&block) inst = Template.new spec[:jobTemplate] = { spec: { template: inst } } inst.instance_eval(&block) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems