# File lib/puppet/rails/resource.rb, line 28 28: def self.rails_resource_initial_args(resource) 29: result = [:type, :title, :line].inject({}) do |hash, param| 30: # 'type' isn't a valid column name, so we have to use another name. 31: to = (param == :type) ? :restype : param 32: if value = resource.send(param) 33: hash[to] = value 34: end 35: hash 36: end 37: 38: # We always want a value here, regardless of what the resource has, 39: # so we break it out separately. 40: result[:exported] = resource.exported || false 41: 42: result 43: end