Class: FsTemplate::ProjectConfig
- Inherits:
-
Object
- Object
- FsTemplate::ProjectConfig
- Includes:
- FromHash
- Defined in:
- lib/fs_template/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
Instance Attribute Details
#base(*args) ⇒ Object
Returns the value of attribute base.
81 82 83 |
# File 'lib/fs_template/project.rb', line 81 def base @base end |
#base_ops ⇒ Object
Returns the value of attribute base_ops.
81 82 83 |
# File 'lib/fs_template/project.rb', line 81 def base_ops @base_ops end |
#body ⇒ Object
Returns the value of attribute body.
81 82 83 |
# File 'lib/fs_template/project.rb', line 81 def body @body end |
Instance Method Details
#command(cmd, phase = :after) ⇒ Object
98 99 100 |
# File 'lib/fs_template/project.rb', line 98 def command(cmd,phase=:after) self.commands << {:command => cmd, :phase => phase} end |
#load! ⇒ Object
102 103 104 105 |
# File 'lib/fs_template/project.rb', line 102 def load! c = self eval(body) end |
#overlay(name) ⇒ Object
94 95 96 |
# File 'lib/fs_template/project.rb', line 94 def (name) self. << name end |