Sha256: 0ea4b920ecae4c6d448c8f2e18b779797261fbde4132c3b042372a9b677eb9d9

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

module Screengem
  #
  # Base class for all tasks.
  #
  class Task
    include Screengem::Actionable
    include Screengem::Configurable
    include Screengem::Dampenable
    include Screengem::Executable

    include Screengem::DSL

    dampen_scope :tasks

    def perform
      execute.tap { sleep(seconds_to_dampen) }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
screengem-0.4.0 lib/screengem/task.rb
screengem-0.3.0 lib/screengem/task.rb
screengem-0.2.0 lib/screengem/task.rb
screengem-0.1.2 lib/screengem/task.rb
screengem-0.1.1 lib/screengem/task.rb
screengem-0.1.0 lib/screengem/task.rb