Sha256: 5df8035020e03b077a856d554f6fc58f553430cb0a4b436ab7dea2800fae0001

Contents?: true

Size: 392 Bytes

Versions: 11

Compression:

Stored size: 392 Bytes

Contents

module Marty::Diagnostic; class Fatal < Base
  def self.display_alert_message
    '<h3 class="error">Something went wrong.</br>'\
    'Consistency is checked between remaining nodes if applicable.</h3>'
  end

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
marty-1.2.9 other/marty/diagnostic/fatal.rb
marty-1.2.8 other/marty/diagnostic/fatal.rb
marty-1.2.7 other/marty/diagnostic/fatal.rb
marty-1.2.6 other/marty/diagnostic/fatal.rb
marty-1.2.5 other/marty/diagnostic/fatal.rb
marty-1.2.4 other/marty/diagnostic/fatal.rb
marty-1.2.3 other/marty/diagnostic/fatal.rb
marty-1.2.2 other/marty/diagnostic/fatal.rb
marty-1.2.1 app/models/marty/diagnostic/fatal.rb
marty-1.2.0 app/models/marty/diagnostic/fatal.rb
marty-1.1.9 app/models/marty/diagnostic/fatal.rb