Class: Rforward::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rforward::CLI
- Defined in:
- lib/rforward.rb
Instance Method Summary collapse
Instance Method Details
#create_config ⇒ Object
26 27 28 29 30 |
# File 'lib/rforward.rb', line 26 def create_config Config.instance.create_sample_config config_path rescue ConfigNotFoundEx => e RLogger.instance.error e. end |
#process_logs(path, ext = ".log") ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rforward.rb', line 17 def process_logs path, ext=".log" check_config dependencies RLogger.instance.info "#{path} logs extensions #{ext}" rescue ConfigNotFoundEx => e RLogger.instance.error e. end |