require 'gds_api/gov_uk_delivery'
require 'plek'

unless ENV['USE_GOVUK_DELIVERY']
  Whitehall.govuk_delivery_client = GdsApi::GovUkDelivery.new(Plek.current.find('govuk-delivery'), {noop: true})
else
  Whitehall.govuk_delivery_client = GdsApi::GovUkDelivery.new(Plek.current.find('govuk-delivery'))
end

require 'gds_api/gov_uk_delivery'
require 'plek'

unless Rails.env.production? || ENV['USE_GOVUK_DELIVERY']
  options = {
    noop: true,
    stdout: Rails.env.development?
  }
  Whitehall.govuk_delivery_client = GdsApi::GovUkDelivery.new(Plek.current.find('govuk-delivery'), options)
else
  Whitehall.govuk_delivery_client = GdsApi::GovUkDelivery.new(Plek.current.find('govuk-delivery'))
end

Change initialiser to log in development
Change initialiser to log in development

Does nothing, logs requests.
