Module: Caffeinate::Perform

Included in:
Caffeinate, Dripper::Base
Defined in:
lib/caffeinate/perform.rb

Instance Method Summary collapse

Instance Method Details

#perform!Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/caffeinate/perform.rb', line 3

def perform!
  if Caffeinate.config.enabled_drippers.nil?
    Caffeinate.dripper_collection.drippers.each do |dripper|
      dripper.constantize.perform!
    end
  else
    Caffeinate.config.enabled_drippers.each do |dripper|
      dripper.to_s.constantize.perform!
    end
  end
  true
end