cookbook 'java_properties', '= 0.1.2'
java_properties (4) Versions 0.1.2 Follow0
Provides a resource for interacting with Java properties files
cookbook 'java_properties', '= 0.1.2', :supermarket
knife supermarket install java_properties
knife supermarket download java_properties
java_properties-cookbook
A library cookbook that provides a resource that knows how to manipulate Java properties files.
Supported Platforms
Windows
Linux
Usage
This cookbook is available on the public supermarket.
Depend on the java_properties
cookbook in your cookbook's metadata.rb file
depends java_properties
java_properties resource
Example usage:
java_properties '' do
# This can be set explicitly or just using the resource name
properties_file '/tmp/java.properties'
# You can use the 'property' directive to set properties
property 'key1', 'value1'
property 'key2', 'value2'
# You can pass an explicit hash of properties
properties {:key1 => 'value1', :key2 => 'value2'}
# You can use the attribute name as the key dynamically
key1 'value1'
key2 'value2'
end
License and Authors
Author:: Ryan Larson (ryan.mango.larson@gmail.com)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
0.1.0
Initial release of java_properties
Foodcritic Metric
0.1.2 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/7c4709c14df31830d53a1538/java_properties/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/7c4709c14df31830d53a1538/java_properties/metadata.rb:1
0.1.2 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/7c4709c14df31830d53a1538/java_properties/metadata.rb:1