Permalink
Browse files

Debugging config setup

  • Loading branch information...
Donavan White
Donavan White committed Apr 9, 2012
1 parent d8782ff commit 3608333025cffab340b32807f510a289b29c52b5
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/omniship.rb
View
@@ -23,12 +23,12 @@
### TODO Working on creating code for using an initializer for configuration ###
module Omniship
- def Fedex.setup
- ROOT = Rails.root
- BOOT = File.join(ROOT, "config", "boot").freeze
- CONFIG = File.join(ROOT, "config", "fedex.yml").freeze
- KEYS = %w{ username password key }.map { |v| v.freeze }.freeze
+ ROOT = Rails.root
+ BOOT = File.join(ROOT, "config", "boot").freeze
+ CONFIG = File.join(ROOT, "config", "fedex.yml").freeze
+ KEYS = %w{ username password key }.map { |v| v.freeze }.freeze
+ def Omniship.setup
require BOOT unless defined? Rails.env
@@config = YAML.load_file(CONFIG)
raise "Invalid fedex configuration file: #{CONFIG}" unless @@config.is_a?(Hash)

0 comments on commit 3608333

Please sign in to comment.