jekyll-s3-yearofmoo 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
@@ -48,8 +48,8 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
48
48
|
|
49
49
|
campaign = @config['campaigns'][campaign]
|
50
50
|
if campaign
|
51
|
-
|
52
|
-
|
51
|
+
include_pattern = campaign['include_files']
|
52
|
+
exclude_pattern = campaign['exclude_files']
|
53
53
|
end
|
54
54
|
|
55
55
|
include_pattern ||= '**/*'
|
@@ -61,7 +61,7 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
61
61
|
files |= Dir[dir + '/' + pat]
|
62
62
|
end
|
63
63
|
else
|
64
|
-
files = Dir[dir + '/' +
|
64
|
+
files = Dir[dir + '/' + include_pattern]
|
65
65
|
end
|
66
66
|
raise files.to_yaml
|
67
67
|
|
@@ -143,11 +143,6 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
143
143
|
|
144
144
|
# Please spec me!
|
145
145
|
def upload_to_s3!(campaign=nil)
|
146
|
-
|
147
|
-
if campaign
|
148
|
-
campaign = @config['campaigns'][campaign]
|
149
|
-
end
|
150
|
-
|
151
146
|
if campaign
|
152
147
|
remove_files = false
|
153
148
|
puts "Deploying *#{campaign}* to #{@s3_bucket}"
|