Sha256: 90db410fc318db9d295eacde5e62d784400d146d6794702ac66475a9fe4495b0
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require "rubygems" require 'pp' if ENV["FLEXMLS_API_CONSOLE"].nil? require 'flexmls_api' else puts "Enabling console mode for local gem" Bundler.require(:default, "development") if defined?(Bundler) path = File.expand_path(File.dirname(__FILE__) + "/../../../lib/") $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) require path + '/flexmls_api' end IRB.conf[:AUTO_INDENT]=true IRB.conf[:PROMPT][:FLEXMLS]= { :PROMPT_I => "flexmlsApi:%03n:%i> ", :PROMPT_S => "flexmlsApi:%03n:%i%l ", :PROMPT_C => "flexmlsApi:%03n:%i* ", :RETURN => "%s\n" } IRB.conf[:PROMPT_MODE] = :FLEXMLS path = File.expand_path(File.dirname(__FILE__) + "/../../../lib/") $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) require path + '/flexmls_api' module FlexmlsApi def self.logger if @logger.nil? @logger = Logger.new(STDOUT) @logger.level = ENV["VERBOSE"].nil? ? Logger::WARN : Logger::DEBUG end @logger end end FlexmlsApi.logger.info("Client configured!") include FlexmlsApi::Models def c FlexmlsApi.client end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flexmls_api-0.6.5 | lib/flexmls_api/cli/setup.rb |
flexmls_api-0.6.4 | lib/flexmls_api/cli/setup.rb |