Skip to content

Commit

Permalink
Fixed reference to cachecontrol_email_notification config.
Browse files Browse the repository at this point in the history
  • Loading branch information
RHM-billing committed Mar 20, 2012
1 parent f9bfe29 commit 2c6e2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/akamai/connection.rb
Expand Up @@ -19,7 +19,7 @@ def driver


def purge(*urls) def purge(*urls)
opts = ["domain=#{config.cachecontrol_domain}", "action=#{config.cachecontrol_purge_action}"] opts = ["domain=#{config.cachecontrol_domain}", "action=#{config.cachecontrol_purge_action}"]
opts << "email-notification=#{config.cachecontrol_domain}" if config.cachecontrol_domain opts << "email-notification=#{config.cachecontrol_email_notification}" if config.cachecontrol_email_notification
result = driver.purgeRequest(config.cachecontrol_username, config.cachecontrol_password, '', opts, urls) result = driver.purgeRequest(config.cachecontrol_username, config.cachecontrol_password, '', opts, urls)
raise PurgeError, result.inspect unless result.resultCode == '100' raise PurgeError, result.inspect unless result.resultCode == '100'
true true
Expand Down

0 comments on commit 2c6e2c2

Please sign in to comment.