Class: RSMP::CLI
- Inherits:
-
Thor
- Object
- Thor
- RSMP::CLI
- Defined in:
- lib/rsmp/cli.rb
Overview
CLI commands for running RSMP site and supervisor.
Instance Method Summary collapse
Instance Method Details
#convert ⇒ Object
53 54 55 56 57 |
# File 'lib/rsmp/cli.rb', line 53 def convert validate_input_file_exists perform_conversion end |
#site ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/rsmp/cli.rb', line 22 def site settings, log_settings = load_site_configuration (settings, log_settings) site_class = determine_site_class(settings) run_site(site_class, settings, log_settings) rescue Interrupt # ctrl-c rescue StandardError => e puts "Uncaught error: #{e}" puts caller.join("\n") end |
#supervisor ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/rsmp/cli.rb', line 42 def supervisor settings, log_settings = load_supervisor_configuration (settings, log_settings) run_supervisor(settings, log_settings) rescue Interrupt # ctrl-c end |