dropbox-deployment 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dropbox-deployment.rb +5 -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: e854d07fdfbef742970d84a597081f57a6daf96d
|
4
|
+
data.tar.gz: ad97a78e8aef9a80df09cea2a7c8ccb5cdaf7821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d668c7d0639c25dac492b58c2450922a368601bb040dafa1cee67a2ea04d589f109ed2d20dfaefd5b2463ff025c224e682d296e4afc63a2c9d90b942a0a6a146
|
7
|
+
data.tar.gz: 3d9459036faa8d496f085967656e4e46727c007dcd07a03db0d03904cd4bd2cad9c8d367a11b4e52e3219787cf4cabe36c7a319e7f77eaf8342ecd3d3bc427da
|
data/lib/dropbox-deployment.rb
CHANGED
@@ -27,7 +27,11 @@ module DropboxDeployment
|
|
27
27
|
|
28
28
|
def deploy()
|
29
29
|
# Validation
|
30
|
-
|
30
|
+
if !File.file?("dropbox-deployment.yml")
|
31
|
+
puts "\nNo config file found. You need a file called `dropbox-deployment.yml` with the configuration. See the README for details\n\n"
|
32
|
+
exit(1)
|
33
|
+
end
|
34
|
+
config = YAML.load_file("dropbox-deployment.yml")
|
31
35
|
testing = false
|
32
36
|
if !config["deploy"]
|
33
37
|
puts "\nError in config file! Build file must contain a `deploy` object.\n\n"
|