Exception: Tomo::Runtime::ConcurrentRubyLoadError

Inherits:
Error
  • Object
show all
Defined in:
lib/tomo/runtime/concurrent_ruby_load_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Colors

enabled?

Instance Attribute Details

#versionObject

Returns the value of attribute version.



6
7
8
# File 'lib/tomo/runtime/concurrent_ruby_load_error.rb', line 6

def version
  @version
end

Instance Method Details

#to_consoleObject



8
9
10
11
12
13
# File 'lib/tomo/runtime/concurrent_ruby_load_error.rb', line 8

def to_console
  <<~ERROR
    Running tasks on multiple hosts requires the #{yellow('concurrent-ruby')} gem.
    To install it, #{install_instructions}
  ERROR
end