ghpages_deploy 2.0.13 → 2.0.14
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.
- checksums.yaml +4 -4
- data/lib/ghpages_deploy/deployer.rb +4 -0
- data/lib/ghpages_deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb86b1de44b6e75e3c066c7ab1987155e8e170cd
|
|
4
|
+
data.tar.gz: 84fe4de10a49ba27d5d1f5ee87a7f4808c2bc7c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe43551e8252bebee67bd5690a98ce917677a832b89aa256985344cf259f63c8679a207e8d12cb880e4e0efa7fcbdcd07d478726952357bd51cb04a413e2a836
|
|
7
|
+
data.tar.gz: bede19411f88af81048e6219430d3fd237282315d84f02a220c408216fda6ca676a3a6362d9aa75f1331a0c27e80cbb7d978e3793e80ef2fa23129ab7dfa93f6
|
|
@@ -52,6 +52,10 @@ module GithubPages
|
|
|
52
52
|
# create the full path to the destination
|
|
53
53
|
FileUtils.mkdir_p(dest)
|
|
54
54
|
|
|
55
|
+
unless File.exist?(@source) && File.directory?(@source)
|
|
56
|
+
fail "#{@source} does not exist or is not a directory."
|
|
57
|
+
end
|
|
58
|
+
|
|
55
59
|
# recursively copy all files from @source into dest
|
|
56
60
|
FileUtils.cp_r("#{@source}/.", dest)
|
|
57
61
|
|