dropbox-deployment 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dropbox-deployment.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e41aedfe5255834c8b8b15780e29f99017d66525
4
- data.tar.gz: 724af439d693400a57f5b820d50ab0e8f86ebd61
3
+ metadata.gz: e854d07fdfbef742970d84a597081f57a6daf96d
4
+ data.tar.gz: ad97a78e8aef9a80df09cea2a7c8ccb5cdaf7821
5
5
  SHA512:
6
- metadata.gz: a14ff7c7fe07a62f98b72a531116513d7bee5a68a8961c0f32cdecaed4078bc9f31dea5dab3d7e9e4e9ac06dbd1612b228133ff38822fe4b7c56807c71d070a3
7
- data.tar.gz: ca82e697e8632ddc817505d692535deb2a4991004bf3ce053cd74be3039c27ffd874d81de580e42ab44955b7881755bb28900b7ecfdbe2f23cbd2cc4c15cc0ca
6
+ metadata.gz: d668c7d0639c25dac492b58c2450922a368601bb040dafa1cee67a2ea04d589f109ed2d20dfaefd5b2463ff025c224e682d296e4afc63a2c9d90b942a0a6a146
7
+ data.tar.gz: 3d9459036faa8d496f085967656e4e46727c007dcd07a03db0d03904cd4bd2cad9c8d367a11b4e52e3219787cf4cabe36c7a319e7f77eaf8342ecd3d3bc427da
@@ -27,7 +27,11 @@ module DropboxDeployment
27
27
 
28
28
  def deploy()
29
29
  # Validation
30
- config = YAML.load_file("upload-to-dropbox.yml")
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropbox-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Carlson