# File lib/puppet/provider/zone/solaris.rb, line 37 37: def configure 38: # If the thing is entirely absent, then we need to create the config. 39: # Is there someway to get this on one line? 40: str = "create -b #{@resource[:create_args]}\nset zonepath=%s\n" % @resource[:path] 41: 42: # Then perform all of our configuration steps. It's annoying 43: # that we need this much internal info on the resource. 44: @resource.send(:properties).each do |property| 45: if property.is_a? ZoneConfigProperty and ! property.insync?(properties[property.name]) 46: str += property.configtext + "\n" 47: end 48: end 49: 50: str += "commit\n" 51: setconfig(str) 52: end