class Hocho::PropertyProviders::AddDefault
Public Class Methods
new(properties: {})
click to toggle source
# File lib/hocho/property_providers/add_default.rb, line 6 def initialize(properties: {}) @properties = properties end
Public Instance Methods
determine(host)
click to toggle source
# File lib/hocho/property_providers/add_default.rb, line 10 def determine(host) host.properties.replace(host.properties.reverse_merge(@properties)) end