Class/Module Index [+]

Quicksearch

Fog::CDN::AWS::DistributionHelper

Public Instance Methods

custom_origin?() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 26
def custom_origin?
  requires :identity
  not custom_origin.nil?
end
destroy() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 9
def destroy
  requires :identity, :etag, :caller_reference
  raise "Distribution must be disabled to be deleted" unless disabled?
  delete_distribution(identity, etag)
  true
end
disable() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 48
def disable
  requires :identity
  reload if etag.nil? or caller_reference.nil?
  if enabled?
    self.enabled = false
    response = put_distribution_config(identity, etag, attributes_to_options)
    etag = response.headers['ETag']
    merge_attributes(response.body)
  end
  true
end
disabled?() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 21
def disabled?
  requires :identity
  not enabled? and ready?
end
enable() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 36
def enable
  requires :identity
  reload if etag.nil? or caller_reference.nil?
  unless enabled?
    self.enabled = true
    response = put_distribution_config(identity, etag, attributes_to_options)
    etag = response.headers['ETag']
    merge_attributes(response.body)
  end
  true
end
enabled?() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 16
def enabled?
  requires :identity
  !!enabled and ready?
end
ready?() click to toggle source
# File lib/fog/aws/models/cdn/distribution_helper.rb, line 31
def ready?
  requires :identity
  status == 'Deployed'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.