Class: Overapp::ProjectConfig
- Inherits:
-
Object
- Object
- Overapp::ProjectConfig
- Includes:
- FromHash
- Defined in:
- lib/overapp/project.rb
Instance Attribute Summary collapse
-
#base(*args) ⇒ Object
Returns the value of attribute base.
-
#base_ops ⇒ Object
Returns the value of attribute base_ops.
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
- #command(cmd, phase = :after) ⇒ Object
- #load! ⇒ Object
- #overapp(name) ⇒ Object
- #overlay(name) ⇒ Object
Instance Attribute Details
#base(*args) ⇒ Object
Returns the value of attribute base.
83 84 85 |
# File 'lib/overapp/project.rb', line 83 def base @base end |
#base_ops ⇒ Object
Returns the value of attribute base_ops.
83 84 85 |
# File 'lib/overapp/project.rb', line 83 def base_ops @base_ops end |
#body ⇒ Object
Returns the value of attribute body.
83 84 85 |
# File 'lib/overapp/project.rb', line 83 def body @body end |
Instance Method Details
#command(cmd, phase = :after) ⇒ Object
104 105 106 |
# File 'lib/overapp/project.rb', line 104 def command(cmd,phase=:after) self.commands << {:command => cmd, :phase => phase} end |
#load! ⇒ Object
108 109 110 111 |
# File 'lib/overapp/project.rb', line 108 def load! c = self eval(body) end |
#overapp(name) ⇒ Object
96 97 98 |
# File 'lib/overapp/project.rb', line 96 def overapp(name) self.overapps << name end |
#overlay(name) ⇒ Object
100 101 102 |
# File 'lib/overapp/project.rb', line 100 def (name) overapp(name) end |