Sha256: 2653cbcf71e1f072671f00c6f84c0c4d5dc7a4cc7b2240719af1017fc9c68c12
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 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 { sleep(seconds); nil } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
floe-0.1.1 | lib/floe/workflow/states/wait.rb |