Class: Pipely::Build::HourlyScheduler
- Inherits:
-
Object
- Object
- Pipely::Build::HourlyScheduler
- Defined in:
- lib/pipely/build/hourly_scheduler.rb
Overview
Compute schedule attributes for a pipeline that runs once-a-day at a set time.
Instance Method Summary collapse
Instance Method Details
#period ⇒ Object
9 10 11 |
# File 'lib/pipely/build/hourly_scheduler.rb', line 9 def period '1 hours' end |
#start_date_time ⇒ Object
13 14 15 16 17 |
# File 'lib/pipely/build/hourly_scheduler.rb', line 13 def start_date_time (Time.now.utc + 3600).strftime("%Y-%m-%dT%H:00:00") end |
#to_hash ⇒ Object
19 20 21 22 23 24 |
# File 'lib/pipely/build/hourly_scheduler.rb', line 19 def to_hash { :period => period, :start_date_time => start_date_time } end |