Module: CwlogTail
- Defined in:
- lib/cwlog_tail.rb,
lib/cwlog_tail/version.rb,
lib/cwlog_tail/cw_client.rb
Defined Under Namespace
Classes: CwClient
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
Class Method Details
.follow? ⇒ Boolean
6 7 8 |
# File 'lib/cwlog_tail.rb', line 6 def self.follow? ARGV.member?('-f') end |
.lines ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/cwlog_tail.rb', line 10 def self.lines idx = ARGV.index('-l') || ARGV.index('--lines') if idx.nil? nil else ARGV[idx + 1].to_i end end |
.options ⇒ Object
19 20 21 22 23 |
# File 'lib/cwlog_tail.rb', line 19 def self. { follow: follow?, lines: lines, } end |