Class: Marty::Diagnostic::Fatal

Inherits:
Base show all
Defined in:
lib/marty/diagnostic/fatal.rb

Class Method Summary collapse

Methods inherited from Base

apply_consistency, consistent?, diagnostic_fn, display, display_info_css, display_info_description, fatal?, get_difference, process_status_only

Methods included from Packer

#create_info, #error, #is_valid_info?, #pack, #process, #process_hash

Methods inherited from Request

op, params, request, request=, scope, ssl?

Class Method Details

.message(msg, opts = {}) ⇒ Object



2
3
4
5
6
# File 'lib/marty/diagnostic/fatal.rb', line 2

def self.message msg, opts = {}
  node = opts[:node] || Node.my_ip
  type = opts[:type] || 'RuntimeError'
  { name.demodulize => { node => { type => error(msg) } } }
end