Created
August 14, 2014 15:21
-
-
Save buth/f8e91055488554a27c78 to your computer and use it in GitHub Desktop.
Add `required` to mixlib-config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mixlib/config' | |
module MyConfig | |
extend Mixlib::Config | |
def self.required(name) | |
default(name) {raise "You must provide a configuration value for #{name}."} | |
end | |
config_strict_mode true | |
required :this_value_is_required | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment