Class: Pipely::Build::RightNowScheduler
- Inherits:
-
Object
- Object
- Pipely::Build::RightNowScheduler
- Defined in:
- lib/pipely/build/right_now_scheduler.rb
Overview
Compute schedule attributes for a pipeline that should run immediately after being deployed.
Instance Method Summary collapse
Instance Method Details
#period ⇒ Object
9 10 11 12 13 |
# 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 ⇒ Object
15 16 17 |
# 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 ⇒ Object
19 20 21 22 23 24 |
# File 'lib/pipely/build/right_now_scheduler.rb', line 19 def to_hash { :period => period, :start_date_time => start_date_time } end |