Sha256: e00d48aa32391f73220ddb1f6b11732e4cdabef481c9e68e81e6be99c01f3359

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 Bytes

Contents

# desc "Explaining what the task does"
# task :tb_checkout do
#   # Task goes here
# end

namespace :tb_checkout do

  desc "Look for old carts and mark them as abandoned"
  task :check_abandoned => :environment do
    result = TbCheckout::Cart.check_abandoned!
    logger.debug("Marked #{result} shopping carts as abandoned")
  end

  def logger
    @_logger = Logger.new(STDOUT) if @_logger.nil?
    return @_logger
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tb_checkout-1.1.1 lib/tasks/tb_checkout_tasks.rake
tb_checkout-1.1.0 lib/tasks/tb_checkout_tasks.rake
tb_checkout-1.0.7 lib/tasks/tb_checkout_tasks.rake
tb_checkout-1.0.6 lib/tasks/tb_checkout_tasks.rake
tb_checkout-1.0.5 lib/tasks/tb_checkout_tasks.rake
tb_checkout-1.0.4 lib/tasks/tb_checkout_tasks.rake
tb_checkout-1.0.3 lib/tasks/tb_checkout_tasks.rake