class Pipely::Build::RightNowScheduler

Compute schedule attributes for a pipeline that should run immediately after being deployed.

Public Instance Methods

period() click to toggle source
# File lib/pipely/build/right_now_scheduler.rb, line 9
def period
  # DataPipeline is soon releasing a run-once feature.
  # TODO: Switch to that when available.
  '1 year'
end
start_date_time() click to toggle source
# File lib/pipely/build/right_now_scheduler.rb, line 15
def start_date_time
  Time.now.utc.strftime("%Y-%m-%dT%H:%M:%S")
end
to_hash() click to toggle source
# File lib/pipely/build/right_now_scheduler.rb, line 19
def to_hash
  {
    :period => period,
    :start_date_time => start_date_time
  }
end