class Packerman::Repository
Constants
- ARRAY_ATTRIBUTES
Public Class Methods
gather() { || ... }
click to toggle source
# File lib/packerman/repository.rb, line 27 def gather yield @_current_instance.to_hash.tap do @_current_instance = nil end end
instance()
click to toggle source
# File lib/packerman/repository.rb, line 34 def instance @_current_instance ||= new end
new()
click to toggle source
# File lib/packerman/repository.rb, line 4 def initialize @_repo = {} end
Public Instance Methods
add_variables(hash)
click to toggle source
# File lib/packerman/repository.rb, line 16 def add_variables(hash) @_repo[:variables] ||= {} @_repo[:variables].merge!(hash) hash end
to_hash()
click to toggle source
# File lib/packerman/repository.rb, line 22 def to_hash @_repo end