pitcher 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pitcher +22 -2
- data/lib/pitcher/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: 3814b7c9184f37216cc870909f6f88d517b92a4c
|
4
|
+
data.tar.gz: 753087fba6ddfcf706686f8d3181ce65682edf2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca1f9568286b24cb2acbd54db6346413fed491ee0470b4eefe7ccf0c90b2d83631530e6fe8e7f867063a131647d0410cee89211403e551e5a005199e1c866f8
|
7
|
+
data.tar.gz: 14104e761607f7b839d5f58ef3eb2ab16fe19e5c063bd1948e72bf534c14bc81e046d0729ccf3064230acd6da7be35edfa4260fbee21242db142f92a3149aed2
|
data/bin/pitcher
CHANGED
@@ -1,9 +1,29 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'pitcher'
|
4
|
+
require 'pitcher/settings'
|
4
5
|
|
5
6
|
pitcher = Pitcher::Pitcher.new
|
7
|
+
|
6
8
|
pitcheropts = Pitcher::PitcherOpts.new
|
7
9
|
options = pitcheropts::parse(ARGV)
|
8
|
-
|
9
|
-
|
10
|
+
|
11
|
+
|
12
|
+
if (!options[:settings] || !options[:csv])
|
13
|
+
puts 'The --settings and --csv paramters are required'
|
14
|
+
exit
|
15
|
+
end
|
16
|
+
|
17
|
+
if (options[:settings])
|
18
|
+
settings = Settings.new(options[:settings])
|
19
|
+
p settings
|
20
|
+
else
|
21
|
+
exit
|
22
|
+
end
|
23
|
+
|
24
|
+
if (options[:csv])
|
25
|
+
csv = pitcher.load_csv(options[:csv])
|
26
|
+
pitcher.create_message(csv,settings)
|
27
|
+
else
|
28
|
+
exit
|
29
|
+
end
|
data/lib/pitcher/version.rb
CHANGED