Sha256: 67d71537ccb96a32506b9235edf9d8c656f2c5740c9fdb68aefc2c16877f9a77
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stack-0.0.1 | lib/stack.rb |