Module: CloudFormationTool::CloudFormation::CloudFrontInvalidation
- Includes:
- CloudFormationTool
- Defined in:
- lib/cloud_formation_tool/cloud_formation/cloud_front_distribution.rb
Constant Summary
VERSION
Instance Method Summary
collapse
#aws_config, #awsas, #awscdn, #awscf, #awscreds, #awsec2, #awsecs, #awss3, #cf_bucket_name, #find_profile, #profile, #region, #s3_bucket_name
Instance Method Details
#distribution_id=(distid) ⇒ Object
34
35
36
|
# File 'lib/cloud_formation_tool/cloud_formation/cloud_front_distribution.rb', line 34
def distribution_id= distid
@distid = distid
end
|
#status ⇒ Object
38
39
40
|
# File 'lib/cloud_formation_tool/cloud_formation/cloud_front_distribution.rb', line 38
def status
awscdn.get_invalidation(distribution_id: @distid, id: self.id).invalidation.status
end
|
#wait ⇒ Object
42
43
44
45
46
|
# File 'lib/cloud_formation_tool/cloud_formation/cloud_front_distribution.rb', line 42
def wait
while self.status == "InProgress"
sleep 5
end
end
|