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