Class: RSMP::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/rsmp/cli.rb

Instance Method Summary collapse

Instance Method Details

#convertObject



52
53
54
55
56
# File 'lib/rsmp/cli.rb', line 52

def convert
  validate_convert_options
  validate_input_file_exists
  perform_conversion
end

#siteObject



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
  apply_site_options(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

#supervisorObject



41
42
43
44
45
46
47
# File 'lib/rsmp/cli.rb', line 41

def supervisor
  settings, log_settings = load_supervisor_configuration
  apply_supervisor_options(settings, log_settings)
  run_supervisor(settings, log_settings)
rescue Interrupt
  # ctrl-c
end

#versionObject



7
8
9
# File 'lib/rsmp/cli.rb', line 7

def version
  puts RSMP::VERSION
end