jekyll-s3-yearofmoo 0.0.29 → 0.0.30
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.
@@ -96,7 +96,6 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
96
96
|
else
|
97
97
|
paths = files
|
98
98
|
end
|
99
|
-
raise paths.to_yaml
|
100
99
|
|
101
100
|
paths
|
102
101
|
end
|
@@ -144,10 +143,15 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
144
143
|
# Please spec me!
|
145
144
|
def upload_to_s3!(campaign=nil)
|
146
145
|
if campaign
|
146
|
+
data = @config['campaigns'][data]
|
147
|
+
end
|
148
|
+
|
149
|
+
if data
|
147
150
|
remove_files = false
|
148
|
-
puts "Deploying
|
151
|
+
puts "Deploying Campaign = \"#{campaign}\" to #{@s3_bucket}"
|
149
152
|
else
|
150
|
-
|
153
|
+
remove_files = true
|
154
|
+
puts "Deploying Dir = \"_site/#{pattern}\" to #{@s3_bucket}"
|
151
155
|
end
|
152
156
|
|
153
157
|
AWS::S3::Base.establish_connection!(
|