lib/onering.rb in onering-client-0.1.7 vs lib/onering.rb in onering-client-0.2.0

- old
+ new

@@ -1,17 +1,25 @@ $: << File.expand_path(File.dirname(__FILE__)) module Onering module Client - VERSION = "0.1.7" + VERSION = "0.2.0" class Error < Exception; end class FatalError < Error; end end end require 'onering/logger' + +if not ENV['ONERING_LOGLEVEL'].nil? + Onering::Logger.setup({ + :destination => 'stderr', + :threshold => ENV['ONERING_LOGLEVEL'] + }) +end + require 'onering/util' require 'onering/api' require 'onering/cli' # require plugins @@ -21,5 +29,8 @@ # require cli submodules Dir[File.join(File.expand_path(File.dirname(__FILE__)),"onering","cli","*.rb")].each do |i| require i end + +# you've loaded the library, now load the config +Onering::Config.load() \ No newline at end of file