# rubygems require 'rubygems' module Stack # Default options used by stack, overridden from the command line or stack configration file. DEFAULTS = { }.freeze def self.configuration(override) config = { } begin #config = YAML.load_file(config_file) rescue => error end # Merge configuration with defaults Stack::DEFAULTS.deep_merge(config).deep_merge(override) end # Stacks current version def self.version yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml]))) "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}" end end