Sha256: 35c6abef31639a913e931afb901c62c312a65fd0a021ced45e1b55cc55fbe7e0

Contents?: true

Size: 370 Bytes

Versions: 9

Compression:

Stored size: 370 Bytes

Contents

module Screengem
  #
  # Base class for all tasks.
  #
  class Task
    include RSpec::Matchers

    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

9 entries across 9 versions & 1 rubygems

Version Path
screengem-0.9.1 lib/screengem/task.rb
screengem-0.9.0 lib/screengem/task.rb
screengem-0.8.1 lib/screengem/task.rb
screengem-0.8.0 lib/screengem/task.rb
screengem-0.7.3 lib/screengem/task.rb
screengem-0.7.2 lib/screengem/task.rb
screengem-0.7.1 lib/screengem/task.rb
screengem-0.6.0 lib/screengem/task.rb
screengem-0.5.0 lib/screengem/task.rb