Module: CloudFormationTool::CloudFormation::CloudFrontInvalidation

Includes:
CloudFormationTool
Defined in:
lib/cloud_formation_tool/cloud_formation/cloud_front_distribution.rb

Constant Summary

Constants included from CloudFormationTool

VERSION

Instance Method Summary collapse

Methods included from CloudFormationTool

#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

#statusObject



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

#waitObject



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