aws-cloudfront 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,62 @@
1
1
  = Amazon CloudFront Management Tool
2
2
 
3
3
  This tool enables you to manage your CloudFront distributions via Ruby or command line.
4
- It is driven by functions you need to host complete static websites on CloudFront. At
5
- the moment you can set the root object of a distribution and invalidate objects to trigger
6
- a re-deployment of certain files.
7
4
 
8
5
  == Requirements
9
- gem install xml-simple
6
+ gem install aws-cloudfront
10
7
 
11
- == Usage
8
+ == General Usage
12
9
 
13
- === Setting a root object
10
+ cloudfront_cmd.rb <parameters> <command>
14
11
 
15
- Set the root object that gets returned when the root url of the distribution is called:
16
- ./cloudfront_cmd.rb --distribution_id <id> --access-key <access key> --secret-access-key <secret key> set_default_root_object <object>
17
12
 
18
- <object> - a file name that exists on the distribution
13
+ === Parameters
19
14
 
20
- Example:
21
- ./cloudfront_cmd.rb --distribution_id AB12FWEEXAMPLE --access-key 15B4D3461BDF1EXAMPLE --secret-access-key "AQE0diMbLRepdf3YBDF/EXAMPLE" set_default_root_object index.html
15
+ --access-key <access key>
16
+
17
+ your AWS access key id
18
+
19
+ --secret-access-key <secret key>
22
20
 
23
- === Invalidating objects
21
+ the corresponding AWS secret access key
24
22
 
25
- When a object on S3 gets overwritten by a newer version CloudFront doesn't trigger a distribution
26
- automatically. Therefore you have to invalidate to objects after overwriting.
23
+ --distribution-id <id>
24
+
25
+ the AWS CloudFront distribution id. It can be found on the
26
+ {AWS Management Console}[https://console.aws.amazon.com/cloudfront/home].
27
27
 
28
- ./cloudfront_cmd.rb --distribution_id <id> --access-key <access key> --secret-access-key <secret key> invalidate_objects <list of objects>
29
28
 
30
- <object list> - a list of
29
+ == Setting a root object
30
+
31
+ Set the root object that gets returned when the root url of the distribution is called:
32
+
33
+ cloudfront_cmd.rb <parameters> set_default_root_object <object>
34
+
35
+ <object> - a file name that exists in the distribution
31
36
 
32
37
  Example:
33
- ./cloudfront_cmd.rb --distribution_id AB12FWEEXAMPLE --access-key 15B4D3461BDF1EXAMPLE --secret-access-key "AQE0diMbLRepdf3YBDF/EXAMPLE" invalidate_objects "/index.html" "/styles.css"
38
+ cloudfront_cmd.rb \
39
+ --distribution-id AB12FWEEXAMPLE \
40
+ --access-key 15B4D3461BDF1EXAMPLE \
41
+ --secret-access-key "AQE0diMbLRepdf3YBDF/EXAMPLE" \
42
+ set_default_root_object "index.html"
34
43
 
35
- <id> - the AWS CloudFront distribution id. It can be found on the
36
- {AWS Management Console}[https://console.aws.amazon.com/cloudfront/home].
37
44
 
38
- <access key> - your AWS access key id.
45
+ == Invalidating objects
46
+
47
+ If an object on S3 gets overwritten by a newer version a redistribution through CloudFront isn't
48
+ triggered automatically. Therefore you have to invalidate the objects afterwards.
39
49
 
40
- <secret key> - the corresponding AWS secret access key
50
+ cloudfront_cmd.rb <parameters> invalidate_objects <list of objects>
51
+
52
+ <list of objects> - space seperated list of absolute path names for files to invalidate
53
+
54
+ Example:
55
+ cloudfront_cmd.rb \
56
+ --distribution-id AB12FWEEXAMPLE \
57
+ --access-key 15B4D3461BDF1EXAMPLE \
58
+ --secret-access-key "AQE0diMbLRepdf3YBDF/EXAMPLE" \
59
+ invalidate_objects "/index.html" "/styles.css"
41
60
 
42
61
 
43
62
  ==Author
@@ -8,12 +8,9 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Alexander Greim", "Luke van der Hoeven", "TJ Singleton"]
10
10
  s.email = ["alexxx@iltempo.de", "hungerandthirst@gmail.com", "tj@salescrunch.com"]
11
- s.homepage = "https://github.com/crunchy/aws-cloudfront"
11
+ s.homepage = "https://github.com/iltempo/aws-cloudfront"
12
12
  s.summary = %q{Library and command line tool for managing CloudFront.}
13
- s.description = %q{This tool enables you to manage your CloudFront distributions via Ruby or command line. It is
14
- driven by functions you need to host complete static websites on CloudFront. At the moment you can
15
- set the root object of a distribution and invalidate objects to trigger a re-deployment of certain
16
- files.}
13
+ s.description = %q{This tool enables you to manage your CloudFront distributions via Ruby or command line.}
17
14
 
18
15
  s.files = `git ls-files`.split("\n")
19
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Cloudfront
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 27
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 1
9
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alexander Greim
@@ -16,7 +17,7 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-12-08 00:00:00 -05:00
20
+ date: 2011-01-14 00:00:00 +01:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
@@ -27,16 +28,13 @@ dependencies:
27
28
  requirements:
28
29
  - - ">="
29
30
  - !ruby/object:Gem::Version
31
+ hash: 3
30
32
  segments:
31
33
  - 0
32
34
  version: "0"
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
- description: |-
36
- This tool enables you to manage your CloudFront distributions via Ruby or command line. It is
37
- driven by functions you need to host complete static websites on CloudFront. At the moment you can
38
- set the root object of a distribution and invalidate objects to trigger a re-deployment of certain
39
- files.
37
+ description: This tool enables you to manage your CloudFront distributions via Ruby or command line.
40
38
  email:
41
39
  - alexxx@iltempo.de
42
40
  - hungerandthirst@gmail.com
@@ -58,7 +56,7 @@ files:
58
56
  - lib/aws-cloudfront/distribution.rb
59
57
  - lib/aws-cloudfront/version.rb
60
58
  has_rdoc: true
61
- homepage: https://github.com/crunchy/aws-cloudfront
59
+ homepage: https://github.com/iltempo/aws-cloudfront
62
60
  licenses: []
63
61
 
64
62
  post_install_message:
@@ -71,6 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
69
  requirements:
72
70
  - - ">="
73
71
  - !ruby/object:Gem::Version
72
+ hash: 3
74
73
  segments:
75
74
  - 0
76
75
  version: "0"
@@ -79,13 +78,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
78
  requirements:
80
79
  - - ">="
81
80
  - !ruby/object:Gem::Version
81
+ hash: 3
82
82
  segments:
83
83
  - 0
84
84
  version: "0"
85
85
  requirements: []
86
86
 
87
87
  rubyforge_project:
88
- rubygems_version: 1.3.7
88
+ rubygems_version: 1.4.2
89
89
  signing_key:
90
90
  specification_version: 3
91
91
  summary: Library and command line tool for managing CloudFront.