1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|cdn] fix cdn documentation

This corrects some small typos in the current CDN documentation.

Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
This commit is contained in:
Brice Figureau 2012-09-23 16:29:56 +02:00
parent 2cf7a4111e
commit 7a7bc53a89

View file

@ -37,13 +37,13 @@ Now you'll need to create a 'distribution' which represents a mapping from the C
# parse the response for stuff you'll need later
distribution_id = data.body['Id']
caller_reference = data.body['CallerReference']
caller_reference = data.body['DistributionConfig']['CallerReference']
etag = data.headers['ETag']
cdn_domain_name = data.body['DomainName']
# wait for the updates to propogate
Fog.wait_for {
cdn.get_distribution(distribution_id).body['Status'] ## 'Deployed'
cdn.get_distribution(distribution_id).body['Status'] == 'Deployed'
}
## Getting Served
@ -75,7 +75,7 @@ But, just in case you need to update things I'll run through how you can make ch
Now you just need to wait for the update to happen like before and once its disabled we can delete it:
Fog.wait_for {
cdn.get_distribution(distribution_id).body['Status'] ## 'Deployed'
cdn.get_distribution(distribution_id).body['Status'] == 'Deployed'
}
cdn.delete_distribution(distribution_id, etag)