8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/inkcite/cli/test.rb', line 8
def self.invoke email, opts
send_to = email.config[TEST_ADDRESS]
if send_to.blank?
litmus_config = email.config[:litmus]
send_to = litmus_config[TEST_ADDRESS] unless litmus_config.blank?
end
if send_to.blank?
abort <<-USAGE.strip_heredoc
Oops! Inkcite can't start a compatibility test because of a missing
configuration value. In config.yml, please add or uncomment this line
and insert your Litmus or Email on Acid static testing email address:
test-address: '([email protected])'
USAGE
end
email.upload unless opts[:'no-upload']
Inkcite::Mailer.send(email, opts.merge({ :to => send_to }))
true
end
|