regen 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/regen.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e43713fa2e291d71714c92e0132bf1fad19276
|
4
|
+
data.tar.gz: 881c40542fa5de1c7312df8d754fa5b8ca616020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2c3119623e9ff3a358f7af0b9825d08f7b1ff0cbd3d30e61c08aa258fe09872ccc5cd32c77e760534bd2be57e8692f6ceb5249cf232d3015544c774ebdfc0f3
|
7
|
+
data.tar.gz: af3b789fc0f76b0be1938fdd5211e9f3ebd8669a6a0c0dff7202a5ffb577aba25e1f2191c4f40c1656bd3083566c75f1b3b33df51d7b027730262555b2b7d9f8
|
data/lib/regen.rb
CHANGED
@@ -18,7 +18,18 @@ end.parse!
|
|
18
18
|
options[:config_file] ||= "regen.json"
|
19
19
|
|
20
20
|
# Create the destination directory if it doesn't exist
|
21
|
-
|
21
|
+
err = <<-EOL
|
22
|
+
A destination directory is required.
|
23
|
+
If a config file is not specified it will default to the regen.json file
|
24
|
+
in the current directory if it exists.
|
25
|
+
|
26
|
+
Example use
|
27
|
+
|
28
|
+
regen -c path/to/configfile -d path/to/destination
|
29
|
+
EOL
|
30
|
+
|
31
|
+
#raise err unless options[:destination]
|
32
|
+
abort err unless options[:destination]
|
22
33
|
Dir.mkdir options[:destination] unless File.exists? options[:destination]
|
23
34
|
|
24
35
|
# Allow pointing to a Git repo for the config file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joiey Seeley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry-byebug
|