Class: Overapp::ProjectConfig
- Includes:
- FromHash
- Defined in:
- lib/overapp/project/config.rb
Instance Attribute Summary collapse
-
#base_ops ⇒ Object
Returns the value of attribute base_ops.
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
- #base(*args) ⇒ Object
- #command(cmd, ops = {}) ⇒ Object
- #load! ⇒ Object
- #overapp(name, ops = {}) ⇒ Object
- #overlay(*args) ⇒ Object
- #var(k, v) ⇒ Object
Instance Attribute Details
#base_ops ⇒ Object
Returns the value of attribute base_ops.
4 5 6 |
# File 'lib/overapp/project/config.rb', line 4 def base_ops @base_ops end |
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/overapp/project/config.rb', line 4 def body @body end |
Instance Method Details
#base(*args) ⇒ Object
8 9 10 |
# File 'lib/overapp/project/config.rb', line 8 def base(*args) overapp(*args) end |
#command(cmd, ops = {}) ⇒ Object
20 21 22 |
# File 'lib/overapp/project/config.rb', line 20 def command(cmd,ops={}) self.overapps << ConfigEntry.new(:descriptor => cmd, :type => :command, :entry_ops => ops) end |
#load! ⇒ Object
28 29 30 31 |
# File 'lib/overapp/project/config.rb', line 28 def load! c = self eval(body) end |
#overapp(name, ops = {}) ⇒ Object
12 13 14 |
# File 'lib/overapp/project/config.rb', line 12 def overapp(name,ops={}) self.overapps << ConfigEntry.new(:descriptor => name, :type => :overapp) end |
#overlay(*args) ⇒ Object
16 17 18 |
# File 'lib/overapp/project/config.rb', line 16 def (*args) overapp(*args) end |
#var(k, v) ⇒ Object
24 25 26 |
# File 'lib/overapp/project/config.rb', line 24 def var(k,v) vars[k] = v end |