past_yer_eyes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/past_yer_eyes/cli.rb +13 -7
- data/lib/past_yer_eyes/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: c18495e807b2ce25602f8aa69a49244221f94eb3
|
4
|
+
data.tar.gz: 5a7ae5401634428f61835934c5e71c28a133a09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdb39c2f08f957aa4225a277a67791f71e04c9e097a961f292a52caef7fd8a5c73bf6adb3f32cbdcaf77072857b43cede625d545cf6fc6aeb168d508a1d8580c
|
7
|
+
data.tar.gz: 75d921c89fb9b0b8efdcc91ac96cd7d15c3d7e7a48cf9754849dcb079c7f4c9005ca36086d4be4816487a9335524ea7797adb339ec3d5d61f5cce920ee0a5212
|
data/lib/past_yer_eyes/cli.rb
CHANGED
@@ -2,15 +2,21 @@ require "thor"
|
|
2
2
|
|
3
3
|
module PastYerEyes
|
4
4
|
class CLI < Thor
|
5
|
-
desc "
|
6
|
-
|
7
|
-
|
5
|
+
desc "help", "Show options"
|
6
|
+
def help
|
7
|
+
help_screen = <<-DESC
|
8
|
+
past_yer_eyes OPTIONS:
|
9
|
+
|
10
|
+
-l, --log_file=PASTEURIZATION_LOG_FILE, :default => "pasteurization.json"
|
11
|
+
-s, --sheet_name=SPREADSHEET_NAME, :default => "Pasteurization Batches CURRENT_TIME"
|
12
|
+
-e, --session=SESSION_FILE, :default => "session.json"
|
8
13
|
|
9
|
-
|
10
|
-
-s, --sheet_name=SPREADSHEET_NAME, :default => "Pasteurization Batches CURRENT_TIME"
|
11
|
-
-e, --session=SESSION_FILE, :default => "session.json"
|
12
|
-
DESC
|
14
|
+
DESC
|
13
15
|
|
16
|
+
puts help_screen
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "parse_logs", "Parse Batch Reports and create a Google sheet"
|
14
20
|
option :log_name, :type => :string, :default => "./pasteurization.json", :aliases => "-l"
|
15
21
|
option :sheet_name, :type => :string, :aliases => "-s"
|
16
22
|
option :session, :type => :string, :default => "./session.json", :aliases => "-e"
|