Sha256: a492f5b681523a619a5788537f0bf49e6fd6952b566b75e675cd52af9bb8eaed

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

require 'tap/task'

module Tap
  module Tasks
    # :startdoc::task sleep
    #
    # Sleeps for the specified duration.
    class Sleep < Tap::Task 
      config :duration, 1, &c.numeric  # sleep duration (ms)
      
      def call(input)
        sleep duration
        super
      end
    end 
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tap-tasks-0.8.0 lib/tap/tasks/sleep.rb
tap-tasks-0.7.0 lib/tap/tasks/sleep.rb