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) ⇒ Object
- #overlay(name) ⇒ 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
7 8 9 |
# File 'lib/overapp/project/config.rb', line 7 def base(*args) overapp(*args) end |
#command(cmd, ops = {}) ⇒ Object
19 20 21 |
# File 'lib/overapp/project/config.rb', line 19 def command(cmd,ops={}) self.overapps << ConfigEntry.new(:descriptor => cmd, :type => :command, :entry_ops => ops) end |
#load! ⇒ Object
23 24 25 26 27 |
# File 'lib/overapp/project/config.rb', line 23 def load! c = self puts body eval(body) end |
#overapp(name) ⇒ Object
11 12 13 |
# File 'lib/overapp/project/config.rb', line 11 def overapp(name) self.overapps << ConfigEntry.new(:descriptor => name, :type => :overapp) end |
#overlay(name) ⇒ Object
15 16 17 |
# File 'lib/overapp/project/config.rb', line 15 def (name) overapp(name) end |