<commit_before>= cloudfront {<img src="https://travis-ci.org/Belkacem/cloudfront.png?branch=master" alt="Build Status" />}[https://travis-ci.org/Belkacem/cloudfront]

A simple wrapper to cloudfront API.

== Usage

    cloudfront = Cloudfront.new('aws_access_key_id', 'aws_secret_access_key')

Create a distribution
    download_distribution = DownloadDistribution.new do
      self.cnames.concat ["test.com", "test2.com"]
      self.default_root_object = "/index.php"
      self.origins.push Origin.new {
        self.id = "test origin"
        self.domain_name = "example.com"
        self.http_port = 90
        self.https_port = 90
      }
      self.origins.push Origin.new {
        self.id = "test origin 2"
        self.domain_name = "example2.com"
        self.origin_access_identity = "origin-access-identity/cloudfront/ID"
      }
      self.default_cache_behavior = CacheBehavior.new {
        self.is_default = true
        self.target_origin_id = "test origin"
        self.query_string_forward = true
      }
      self.cache_behaviors.push CacheBehavior.new {
        self.path_pattern = "*.jpg"
        self.target_origin_id = "test origin"<commit_msg>No need for is default for default cache behavior, it is automatically set by the distribution in validation phase.<commit_after>= cloudfront {<img src="https://travis-ci.org/Belkacem/cloudfront.png?branch=master" alt="Build Status" />}[https://travis-ci.org/Belkacem/cloudfront]

A simple wrapper to cloudfront API.

== Usage

    cloudfront = Cloudfront.new('aws_access_key_id', 'aws_secret_access_key')

Create a distribution
    download_distribution = DownloadDistribution.new do
      self.cnames.concat ["test.com", "test2.com"]
      self.default_root_object = "/index.php"
      self.origins.push Origin.new {
        self.id = "test origin"
        self.domain_name = "example.com"
        self.http_port = 90
        self.https_port = 90
      }
      self.origins.push Origin.new {
        self.id = "test origin 2"
        self.domain_name = "example2.com"
        self.origin_access_identity = "origin-access-identity/cloudfront/ID"
      }
      self.default_cache_behavior = CacheBehavior.new {
        self.target_origin_id = "test origin"
        self.query_string_forward = true
      }
      self.cache_behaviors.push CacheBehavior.new {
        self.path_pattern = "*.jpg"
        self.target_origin_id = "test origin"
{'fraction_non_alphanumeric': 0.10968009970918155, 'fraction_numerical': 0.005816368923971749, 'mean_word_length': 2.909090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1240934', 'n_tokens_mistral': 761, 'n_tokens_neox': 744, 'n_words': 145}