ritsudo 0.1.6 → 0.1.8
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.
- checksums.yaml +4 -4
- data/bin/ritsudo +3 -0
- data/lib/ritsudo/cli.rb +10 -8
- data/lib/ritsudo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2396e7dc48c6005364d5f35a728c22b09cca4a7ec40445cc81984c2e34317c7a
|
4
|
+
data.tar.gz: 82b0a8c4e870801d707e16ec3e21de34431e67d19f73283f1005f7385238a188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474cc72036aa278b67344d832556face7ebe1569fdee8ac6601cc493f60e39fccfd668f5a40b4cf2986125cb9cdd4f323e4fd5e0c15e34fa7b81dc6e63d1b57a
|
7
|
+
data.tar.gz: 40285a426da3b945854f8a3dc94a5b6c7e4832d18f9d28b56e9f9247634dbd71a3aacde37d9b538b62558c0b5d67a22e8ea0c8d83701a1229c8a7d6dd88abaa1
|
data/bin/ritsudo
CHANGED
data/lib/ritsudo/cli.rb
CHANGED
@@ -3,14 +3,15 @@ require 'thor'
|
|
3
3
|
module Ritsudo
|
4
4
|
class Cli < Thor
|
5
5
|
default_command :benchmark
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
class_option :url, required: true, aliases: ['-a']
|
7
|
+
class_option :count, default: 5, type: :numeric, aliases: ['-c']
|
8
|
+
class_option :cookies, type: :string, aliases: ['-C']
|
9
|
+
class_option :sub_process_timeout, default: 5, type: :numeric, aliases: ['-s']
|
10
|
+
class_option :timeout, default: 10, type: :numeric, aliases: ['-t']
|
11
|
+
class_option :wait_time, default: 1, type: :numeric, aliases: ['-w']
|
12
|
+
class_option :ua, type: :string, aliases: ['-u']
|
13
|
+
class_option :match, type: :string, aliases: ['-m']
|
14
|
+
|
14
15
|
desc "benchmark URL", "benchmark"
|
15
16
|
def benchmark()
|
16
17
|
match = options[:match] ? Regexp.new(options[:match]) : nil
|
@@ -28,5 +29,6 @@ module Ritsudo
|
|
28
29
|
)
|
29
30
|
benchmark.collector.report
|
30
31
|
end
|
32
|
+
tasks["benchmark"].options = self.class_options
|
31
33
|
end
|
32
34
|
end
|
data/lib/ritsudo/version.rb
CHANGED