Sha256: 34c04fe808a0052170d9c975f819cabfb819cdc4e54e9bfd667ba12d3a7e3701
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
module Overapp class ProjectConfig include FromHash attr_accessor :body, :base_ops fattr(:overapps) { [] } def base(*args) overapp(*args) end def overapp(name) self.overapps << ConfigEntry.new(:descriptor => name, :type => :overapp) end def overlay(name) overapp(name) end def command(cmd,ops={}) self.overapps << ConfigEntry.new(:descriptor => cmd, :type => :command, :entry_ops => ops) end def load! c = self eval(body) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
overapp-0.4.2 | lib/overapp/project/config.rb |
overapp-0.4.0 | lib/overapp/project/config.rb |