sinatra-packrat 0.1.0 → 0.1.1

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 (2) hide show
  1. data/bin/packrat +11 -0
  2. metadata +2 -2
data/bin/packrat CHANGED
@@ -3,8 +3,19 @@
3
3
  require "yaml"
4
4
 
5
5
  config_path = ARGV[0]
6
+
7
+ unless File.exists? config_path
8
+ p "#{config_path} does not exist!"
9
+ exit
10
+ end
11
+
6
12
  config = YAML::load_file(config_path)
7
13
 
14
+ unless config["modules"] and config["modules"].respond_to? :each
15
+ p "Config file requires a 'module' array"
16
+ exit
17
+ end
18
+
8
19
  config["modules"].each do |mod|
9
20
  next unless mod["git"]
10
21
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brennan Roberts