realityforge/chef-glassfish — pull request #29 by mknapik (2014-04-13 13:55:34+00:00)
Title: Add support for create-jms-resource

New provider was based on `jdbc_resource.rb` and `custom_resource.rb`.

When I run `asadmin create-custom-resource ...` even though I do not run `asadmin set resources.custom-resource.setting ...` I still get all properties when I list them `asadmin list resources.*` so I skipped some code present in both `jdbc_resource.rb` and `custom_resource.rb`:
```ruby
sets = {'pool-name' => new_resource.connectionpoolid, 'description' => new_resource.description}
new_resource.properties.each_pair do |key, value|
sets["property.#{key}"] = value
end
sets['enabled'] = !!new_resource.enabled
sets.each_pair do |key, value|
variable = "resources.jdbc-resource.#{new_resource.name}.#{key}"
glassfish_property "#{variable}=#{value}" do
domain_name new_resource.domain_name
admin_port new_resource.admin_port
username new_resource.username
password_file new_resource.password_file
secure new_resource.secure
key variable
value value.to_s
end
end
```
as I was not sure what was the purpose of it.
Can you explain why `asadmin set` is run after `asadmin create-*`?