Module: Mast

Defined in:
lib/mast.rb,
lib/mast/cli.rb,
lib/mast/manifest.rb

Defined Under Namespace

Classes: Cli, Manifest

Constant Summary collapse

VERSION =

becuase Ruby 1.8~ gets in the way

['version']

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object

Access project metadata via constants.



11
12
13
14
# File 'lib/mast.rb', line 11

def self.const_missing(name)
  key = name.to_s.downcase
  package[key] || super(name)
end

.metadataObject

Access to project metadata.



3
4
5
6
7
8
# File 'lib/mast.rb', line 3

def self.
  @metadata ||= (
    require 'yaml'
    YAML.load(File.new(File.dirname(__FILE__) + '/mast.yml'))
  )
end