Skip to content

Instantly share code, notes, and snippets.

@mgreensmith
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgreensmith/5d458edd00c051ec5e71 to your computer and use it in GitHub Desktop.
Save mgreensmith/5d458edd00c051ec5e71 to your computer and use it in GitHub Desktop.
module Comrad
module Config
atttr_accessor :config
@config ||= load_config
def self.load_config
# load from file
end
end
class Chef
include Comrad::Config
@config = Comrad::Config.config
# Config should be available here
end
class Change
# Config should be available here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment