Class: Secryst::Provisioning::Secrystfile
- Inherits:
-
Object
- Object
- Secryst::Provisioning::Secrystfile
- Defined in:
- lib/secryst/provisioning.rb
Instance Attribute Summary collapse
-
#models ⇒ Object
Returns the value of attribute models.
-
#remotes ⇒ Object
Returns the value of attribute remotes.
Instance Method Summary collapse
-
#initialize(path) ⇒ Secrystfile
constructor
A new instance of Secrystfile.
- #model(name) ⇒ Object
- #source(src) ⇒ Object
Constructor Details
#initialize(path) ⇒ Secrystfile
Returns a new instance of Secrystfile.
172 173 174 175 176 |
# File 'lib/secryst/provisioning.rb', line 172 def initialize(path) @path = path @models, @remotes = [], [] self.instance_eval(File.read(path), path) end |
Instance Attribute Details
#models ⇒ Object
Returns the value of attribute models.
186 187 188 |
# File 'lib/secryst/provisioning.rb', line 186 def models @models end |
#remotes ⇒ Object
Returns the value of attribute remotes.
186 187 188 |
# File 'lib/secryst/provisioning.rb', line 186 def remotes @remotes end |
Instance Method Details
#model(name) ⇒ Object
178 179 180 |
# File 'lib/secryst/provisioning.rb', line 178 def model(name) @models << name end |
#source(src) ⇒ Object
182 183 184 |
# File 'lib/secryst/provisioning.rb', line 182 def source(src) @remotes << src end |