lib/odania.rb in odania-0.0.2 vs lib/odania.rb in odania-0.0.3

- old
+ new

@@ -4,13 +4,13 @@ module Odania autoload :Consul, 'odania/consul' autoload :Service, 'odania/service' autoload :Plugin, 'odania/plugin' - def self.service(consul_url=nil) + def self.service if @service.nil? Odania.configure - @service = Service.new(consul_url) + @service = Service.new end @service end def self.plugin