class Hive::Controller::Shell

The Shell controller

Public Class Methods

new(options) click to toggle source
Calls superclass method Hive::Controller::new
# File lib/hive/controller/shell.rb, line 8
def initialize(options)
  Hive.logger.debug("options: #{options.inspect}")
  @workers = options['workers'] || 0
  super
end

Public Instance Methods

detect() click to toggle source
# File lib/hive/controller/shell.rb, line 14
def detect
  Hive.logger.info('Creating shell devices')
  (1..@workers).collect do |i|
    Hive.logger.info("  Shell device #{i}")
    self.create_device('id' => i)
  end
end