Sha256: f0102ed142c237eb318678ddb8d07654c57e43744666b25d6ed077e809ad5159
Contents?: true
Size: 542 Bytes
Versions: 7
Compression:
Stored size: 542 Bytes
Contents
module Codepipe::Dsl module Schedule PROPERTIES = %w[ description event_pattern name role_arn schedule_expression state targets ] PROPERTIES.each do |prop| define_method(prop) do |v| @properties[prop.to_sym] = v end end def rate(period) @schedule_expression = "rate(#{period})" end def cron(expression) @schedule_expression = "cron(#{expression})" end def rule_event(props={}) @rule_event_props = props end end end
Version data entries
7 entries across 7 versions & 1 rubygems