root/lib/cyborghood.rb @ 09b29d2c
44648f83 | Marc Dequènes (Duck) | #--
|
|
# CyborgHood, a distributed system management software.
|
|||
364e4a96 | Marc Dequènes (Duck) | # Copyright (c) 2009-2011 Marc Dequènes (Duck) <Duck@DuckCorp.org>
|
|
44648f83 | Marc Dequènes (Duck) | #
|
|
# This program is free software: you can redistribute it and/or modify
|
|||
# it under the terms of the GNU General Public License as published by
|
|||
# the Free Software Foundation, either version 3 of the License, or
|
|||
# (at your option) any later version.
|
|||
#
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
# GNU General Public License for more details.
|
|||
#
|
|||
# You should have received a copy of the GNU General Public License
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#++
|
|||
$KCODE = 'UTF8'
|
|||
require 'jcode'
|
|||
2f1c6b5b | Marc Dequènes (Duck) | require 'pp'
|
|
a445b722 | Marc Dequènes (Duck) | require 'set'
|
|
require 'ostruct'
|
|||
90197e7b | Marc Dequènes (Duck) | require 'needle'
|
|
a445b722 | Marc Dequènes (Duck) | require 'cyborghood/base/exceptions'
|
|
fd5bab1c | Marc Dequènes (Duck) | require 'cyborghood/base/config'
|
|
a445b722 | Marc Dequènes (Duck) | require 'cyborghood/base/ruby_extra'
|
|
fd5bab1c | Marc Dequènes (Duck) | require 'cyborghood/base/logger'
|
|
a445b722 | Marc Dequènes (Duck) | require 'cyborghood/base/i18n'
|
|
44648f83 | Marc Dequènes (Duck) | ||
90197e7b | Marc Dequènes (Duck) | ||
c2f9dd87 | Marc Dequènes (Duck) | ENV['LC_ALL'] = "C"
|
|
44648f83 | Marc Dequènes (Duck) | module CyborgHood
|
|
a445b722 | Marc Dequènes (Duck) | PRODUCT = "CyborgHood"
|
|
VERSION = "0.4.0"
|
|||
c2f9dd87 | Marc Dequènes (Duck) | add_deferred_translations
|
|
90197e7b | Marc Dequènes (Duck) | ||
def register_services(container)
|
|||
container.define do |b|
|
|||
b.config do
|
|||
Config.instance
|
|||
end
|
|||
849a61fb | Marc Dequènes (Duck) | ||
b.logger do
|
|||
Logger.instance
|
|||
end
|
|||
90197e7b | Marc Dequènes (Duck) | end
|
|
end
|
|||
module_function :register_services
|
|||
a445b722 | Marc Dequènes (Duck) | ||
autoload :Cyborg, 'cyborghood/cyborg'
|
|||
44648f83 | Marc Dequènes (Duck) | end
|