lib/hcl/task.rb in zenhob-hcl-0.2.0 vs lib/hcl/task.rb in zenhob-hcl-0.2.1

- old
+ new

@@ -44,10 +44,14 @@ days.first end def start opts day = add opts - DayEntry.from_xml(Task.get("daily/timer/#{day.id}")).first + if day.running? + day + else + DayEntry.from_xml(Task.get("daily/timer/#{day.id}")).first + end end end end