Class: Riser::Resource::Builder
- Inherits:
-
Object
- Object
- Riser::Resource::Builder
- Defined in:
- lib/riser/resource.rb
Instance Method Summary collapse
- #alias_unref(name) ⇒ Object
-
#at_create(&block) ⇒ Object
:yields:.
-
#at_destroy(&block) ⇒ Object
:yields: resource_object.
- #call ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
149 150 151 152 153 |
# File 'lib/riser/resource.rb', line 149 def initialize @create = nil @destroy = nil @unref_alias_set = Set.new end |
Instance Method Details
#alias_unref(name) ⇒ Object
165 166 167 168 |
# File 'lib/riser/resource.rb', line 165 def alias_unref(name) @unref_alias_set << name.to_sym nil end |
#at_create(&block) ⇒ Object
:yields:
155 156 157 158 |
# File 'lib/riser/resource.rb', line 155 def at_create(&block) # :yields: @create = block nil end |
#at_destroy(&block) ⇒ Object
:yields: resource_object
160 161 162 163 |
# File 'lib/riser/resource.rb', line 160 def at_destroy(&block) # :yields: resource_object @destroy = block nil end |