Sha256: 0ba5d09aa7c21c9e7c70ecaee298fc52cd7e68ea01cb4ca7fd457143cbb1841a

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module Nocode
  module Steps
    # Sleep for an arbitrary number of seconds.
    #
    # Mechanic: https://apidock.com/ruby/Kernel/sleep
    class Sleep < Step
      option :seconds

      def perform
        Kernel.sleep(seconds_option.to_f)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nocode-0.0.10 lib/nocode/steps/sleep.rb
nocode-0.0.9 lib/nocode/steps/sleep.rb
nocode-0.0.8 lib/nocode/steps/sleep.rb
nocode-0.0.7 lib/nocode/steps/sleep.rb
nocode-0.0.6 lib/nocode/steps/sleep.rb
nocode-0.0.5 lib/nocode/steps/sleep.rb