Sha256: df6fd03b9d2ad53dde1f9b9fa1e7a686f49e280a9cb1fa3e3501ed0b7a846f6f
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 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.1 | lib/brewmaster/configuration.rb |