Sha256: ea9b30650796af5c6a56e0f94590f05ab5dfc25da373f5a57cbd62aa1cd2db8d
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module Floe class Workflow module States class Wait < Floe::Workflow::State attr_reader :end, :next, :seconds, :input_path, :output_path def initialize(workflow, name, payload) super @next = payload["Next"] @seconds = payload["Seconds"].to_i @input_path = Path.new(payload.fetch("InputPath", "$")) @output_path = Path.new(payload.fetch("OutputPath", "$")) end def run!(*) super do sleep(seconds) nil end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
floe-0.2.1 | lib/floe/workflow/states/wait.rb |
floe-0.2.0 | lib/floe/workflow/states/wait.rb |