Class: RSMP::CLI
- Inherits:
-
Thor
- Object
- Thor
- RSMP::CLI
- Defined in:
- lib/rsmp/cli.rb
Instance Method Summary collapse
Instance Method Details
#convert ⇒ Object
52 53 54 55 56 |
# File 'lib/rsmp/cli.rb', line 52 def convert validate_input_file_exists perform_conversion end |
#site ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rsmp/cli.rb', line 21 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
41 42 43 44 45 46 47 |
# File 'lib/rsmp/cli.rb', line 41 def supervisor settings, log_settings = load_supervisor_configuration (settings, log_settings) run_supervisor(settings, log_settings) rescue Interrupt # ctrl-c end |