root/lib/cyborghood.rb @ 685a6991
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'
|
|
90197e7b | Marc Dequènes (Duck) | require 'needle'
|
|
fd5bab1c | Marc Dequènes (Duck) | require 'cyborghood/base/config'
|
|
require 'cyborghood/base/info'
|
|||
require 'cyborghood/base/lang_additions'
|
|||
require 'cyborghood/base/logger'
|
|||
require 'cyborghood/base/language'
|
|||
require 'cyborghood/base/exceptions'
|
|||
44648f83 | Marc Dequènes (Duck) | ||
90197e7b | Marc Dequènes (Duck) | ||
44648f83 | Marc Dequènes (Duck) | module CyborgHood
|
|
include I18nTranslation
|
|||
672adb6d | Marc Dequènes (Duck) | ENV['LC_ALL'] = "C"
|
|
44648f83 | Marc Dequènes (Duck) | bindtextdomain("cyborghood", {:path => Config::L10N_DIR, :charset => "UTF-8"})
|
|
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
|
|||
44648f83 | Marc Dequènes (Duck) | end
|