Method: TailCommandBuilder#valid?
- Defined in:
- lib/clarity/commands/tail_command_builder.rb
#valid? ⇒ Boolean
6 7 8 9 |
# File 'lib/clarity/commands/tail_command_builder.rb', line 6 def valid? raise InvalidParameterError, "Log file parameter not supplied or invalid log file" unless filename && !filename.empty? && File.extname(filename) == ".log" true end |