def cdn_enable(ttl = 259200)
      log "enabling CDN access to #{container_path} with a cache expiry of #{ttl / 60} minutes"

      response = cdn_client.put(container_path, "X-TTL" => ttl.to_i.to_s)
      (200..299).cover?(response.code.to_i)
    end
def cdn_enable(ttl = 259200)
      log "enabling CDN access to #{container_path} with a cache expiry of #{ttl / 60} minutes"

      response = cdn_client.put(container_path, "X-TTL" => ttl.to_i.to_s)
      (200..299).cover?(response.code.to_i)
    end
use this with caution, it will make EVERY object in the container publicly available
 via the CDN. CDN enabling can be done via the web UI but only with a TTL of 72 hours.
 Using the API it's possible to set a TTL of 50 years.

 TTL is defined in seconds, default is 72 hours.