Sha256: d03307d6925789eb0f18d679836768f6fbe448a60f40b1d5e4dc2224b2d30a8e
Contents?: true
Size: 516 Bytes
Versions: 18
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true namespace :email do desc 'Sends test email to specified address - Example: EMAIL=spree@example.com bundle exec rake email:test' task test: :environment do Spree::Deprecation.warn("rake email:test has been deprecated and will be removed with Solidus 3.0") raise ArgumentError, "Must pass EMAIL environment variable. Example: EMAIL=spree@example.com bundle exec rake email:test" unless ENV['EMAIL'].present? Spree::TestMailer.test_email(ENV['EMAIL']).deliver! end end
Version data entries
18 entries across 18 versions & 1 rubygems