lib/acf/right_acf_streaming_interface.rb
# List all streaming distributions.
# Returns an array of distributions or RightAws::AwsError exception.
#
#  acf.list_streaming_distributions #=>
#    [{:status=>"Deployed",
#      :aws_id=>"E3CWE2Z9USOS6B",
#      :enabled=>true,
#      :domain_name=>"s2jz1ourvss1fj.cloudfront.net",
#      :s3_origin=> {:dns_name=>"bucket-for-konstantin-00.s3.amazonaws.com"},
#      :last_modified_time=>"2010-04-19T08:53:32.574Z",
#      :comment=>"Woo-Hoo!",
#      :cnames=>["stream.web.my-awesome-site.net"]},
#      ...
#     {:status=>"Deployed",
#      :aws_id=>"E3NPQZY4LKAYQ8",
#      :enabled=>true,
#      :domain_name=>"sw9nrsq9pudk3.cloudfront.net",
#      :s3_origin=> {:dns_name=>"bucket-for-konstantin-00.s3.amazonaws.com"},
#      :last_modified_time=>"2010-04-19T08:59:09.600Z",
#      :comment=>"Woo-Hoo!",
#      :cnames=>["stream-6.web.my-awesome-site.net"]}]
#
List all streaming distributions.
Returns an array of distributions or RightAws::AwsError exception.


List all streaming distributions . Returns an array of distributions or RightAws :: AwsError exception .
def list_streaming_distributions
      result = []
      incrementally_list_streaming_distributions do |response|
        result += response[:distributions]
        true
      end
      result
    end
def list_streaming_distributions result = [ ] incrementally_list_streaming_distributions do | response | result += response [ :distributions ] true end result end
List all streaming distributions.
List all streaming distributions .