middleman-cloudfront 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -4
- data/lib/middleman-cloudfront/commands.rb +15 -5
- data/lib/middleman-cloudfront/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4616ccd05e6f93bfbfbc0d5acf4d07c5a3a46b7b
|
4
|
+
data.tar.gz: 43409818aa9e24059b9fa1df52f02951ee9afd94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 582c2c9ddb0d5c24ffa97411ea72165c8593b68745956f004440864b9dfb0d39f63ad2eb7adecc32a1888b6397db03c78155c4d45c38dcc41eab8592ba572570
|
7
|
+
data.tar.gz: 7ac523b81cf975caf466d4e2754dc5220ca8fb4020676951b1a5f379ebbe10b55e6b3f5597d379acac67210a84b43a4385a264b7bae5c042e4877e54e27ddeef
|
data/.travis.yml
CHANGED
@@ -50,11 +50,21 @@ end
|
|
50
50
|
end
|
51
51
|
|
52
52
|
puts "## Invalidating files on CloudFront"
|
53
|
-
|
54
|
-
|
55
|
-
:
|
56
|
-
|
57
|
-
|
53
|
+
|
54
|
+
fog_options = {
|
55
|
+
:provider => 'AWS'
|
56
|
+
}
|
57
|
+
|
58
|
+
if options.access_key_id && options.secret_access_key
|
59
|
+
fog_options.merge!({
|
60
|
+
:aws_access_key_id => options.access_key_id,
|
61
|
+
:aws_secret_access_key => options.secret_access_key
|
62
|
+
})
|
63
|
+
else
|
64
|
+
fog_options.merge!({:use_iam_profile => true})
|
65
|
+
end
|
66
|
+
|
67
|
+
cdn = Fog::CDN.new(fog_options)
|
58
68
|
|
59
69
|
distribution = cdn.distributions.get(options.distribution_id)
|
60
70
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Korzhuev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project: middleman-cloudfront
|
169
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.4.5
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Invalidate CloudFront cache after deployment to S3
|