lib/miu.rb in miu-0.2.0 vs lib/miu.rb in miu-0.2.1
- old
+ new
@@ -4,50 +4,50 @@
module Miu
autoload :CLI, 'miu/cli'
autoload :Utility, 'miu/utility'
- autoload :Socket, 'miu/socket'
- autoload :PubSocket, 'miu/socket'
- autoload :SubSocket, 'miu/socket'
- autoload :XPubSocket, 'miu/socket'
- autoload :XSubSocket, 'miu/socket'
+ autoload :Socket, 'miu/sockets'
+ autoload :PubSocket, 'miu/sockets'
+ autoload :SubSocket, 'miu/sockets'
+ autoload :XPubSocket, 'miu/sockets'
+ autoload :XSubSocket, 'miu/sockets'
autoload :Server, 'miu/server'
autoload :Packet, 'miu/packet'
- autoload :Publishable, 'miu/publishable'
- autoload :Subscribable, 'miu/subscribable'
+ autoload :Writable, 'miu/writable'
+ autoload :Readable, 'miu/readable'
autoload :Publisher, 'miu/publisher'
autoload :Subscriber, 'miu/subscriber'
autoload :Proxy, 'miu/proxy'
autoload :Forwarder, 'miu/forwarder'
autoload :Command, 'miu/command'
autoload :Node, 'miu/node'
- autoload :Type, 'miu/type'
+ autoload :Nodes, 'miu/nodes'
autoload :Resources, 'miu/resources'
autoload :Messages, 'miu/messages'
class << self
def root
require 'pathname'
- @root ||= Pathname.new(Dir.pwd)
+ Pathname.new(ENV['MIU_ROOT'] || Dir.pwd)
end
def default_port
Integer(ENV['MIU_DEFAULT_PORT']) rescue 22200
end
- def default_god_port
- default_port
+ def default_pub_port
+ default_port + 0
end
- def default_pub_port
+ def default_sub_port
default_port + 1
end
- def default_sub_port
- default_port + 2
+ def default_god_port
+ default_port + 3
end
def default_god_config
'config/miu.god'
end