Module: Nanite::ConsoleHelper

Included in:
Agent, Mapper
Defined in:
lib/nanite/console.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/nanite/console.rb', line 3

def self.included(base)
  @@base = base
end

Instance Method Details

#start_consoleObject



7
8
9
10
11
12
# File 'lib/nanite/console.rb', line 7

def start_console
  puts "Starting #{@@base.name.split(":").last.downcase} console (#{self.identity}) (Nanite #{Nanite::VERSION})"
  Thread.new do
    Console.start(self)
  end
end