Class: Bixby::Provision::Variable
- Defined in:
- lib/bixby/provision/dsl/variable.rb
Constant Summary collapse
- EXPORTS =
[:set, :get]
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #get(name) ⇒ Object
-
#initialize(*args) ⇒ Variable
constructor
A new instance of Variable.
- #set(name, value) ⇒ Object
Methods inherited from Base
#get_gid, #get_group, #get_uid, #get_user, #tap
Methods included from Util::File
#chmod, #chown, #sha256sum, #which
Constructor Details
#initialize(*args) ⇒ Variable
Returns a new instance of Variable.
9 10 11 12 |
# File 'lib/bixby/provision/dsl/variable.rb', line 9 def initialize(*args) super @variables = {} end |
Instance Method Details
#get(name) ⇒ Object
18 19 20 |
# File 'lib/bixby/provision/dsl/variable.rb', line 18 def get(name) @variables[name] end |
#set(name, value) ⇒ Object
14 15 16 |
# File 'lib/bixby/provision/dsl/variable.rb', line 14 def set(name, value) @variables[name] = value end |