Sha256: 4807c32cc1492e74d8c52a2642bcce4cb9b1b078b152dfea7a4d898053011109
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
module Brewmaster class Configuration def initialize(options={}) @bootstrap = options.fetch(:bootstrap, false) @config_file = YAML.load_file(options.fetch(:config_path, Brewmaster::BOOTSTRAP_CONFIG_PATH)) end def bootstrap? @bootstrap end def brews @brews ||= @config_file['brews'] || [] end def casks @casks ||= @config_file['casks'] || [] end def rubies @rubies ||= @config_file['rubies'] || [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brewmaster-0.0.2 | lib/brewmaster/configuration.rb |