cookbook 'java_properties', '~> 0.1.3', :supermarket
java_properties (4) Versions 0.1.3 Follow0
Provides a resource for interacting with Java properties files
cookbook 'java_properties', '~> 0.1.3'
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:
If the properties file already exists, this resource will merge the properties you set with the properties contained in the file. Duplicate entries will be overwritten by properties you have set.
If the properties file does not exist, it will be created with the properties you set.
java_properties '<properties_file>' 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
Collaborator Number Metric
0.1.3 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.3 passed this metric
No Binaries Metric
0.1.3 failed this metric
Failure: Cookbook should not contain binaries. Found:
java_properties/files/default/vendor/cache/java-properties-0.0.2.gem
Publish Metric
0.1.3 passed this metric
Supported Platforms Metric
0.1.3 failed this metric
java_properties should declare what platform(s) it supports.
Testing File Metric
0.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.3 passed this metric
0.1.3 failed this metric
0.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.3 passed this metric
No Binaries Metric
0.1.3 failed this metric
Failure: Cookbook should not contain binaries. Found:
java_properties/files/default/vendor/cache/java-properties-0.0.2.gem
Publish Metric
0.1.3 passed this metric
Supported Platforms Metric
0.1.3 failed this metric
java_properties should declare what platform(s) it supports.
Testing File Metric
0.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.3 passed this metric
0.1.3 passed this metric
0.1.3 failed this metric
Failure: Cookbook should not contain binaries. Found:
java_properties/files/default/vendor/cache/java-properties-0.0.2.gem
Publish Metric
0.1.3 passed this metric
Supported Platforms Metric
0.1.3 failed this metric
java_properties should declare what platform(s) it supports.
Testing File Metric
0.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.3 passed this metric
0.1.3 passed this metric
0.1.3 failed this metric
java_properties should declare what platform(s) it supports.
Testing File Metric
0.1.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.3 passed this metric
0.1.3 failed this metric
0.1.3 passed this metric