cookbook 'applications', '~> 0.0.1'
applications (1) Versions 0.0.1 Follow2
Installs and configures mac_osx applications
cookbook 'applications', '~> 0.0.1', :supermarket
knife supermarket install applications
knife supermarket download applications
applications Cookbook
A cookbook, based on the pivotal_workstation, but without a lot of custom providers and a lot cleaner.
Usage
package / homebrew_package
This cookbook provides a package provider called homebrew_package
which will install/remove packages using Homebrew. This becomes the
default provider for package
if your platform is Mac OS X.
As this extends the built-in package resource/provider in Chef, it has
all the resource attributes and actions available to the package
resource. However, a couple notes:
- Homebrew itself doesn't have a notion of "upgrade" per se. The "upgrade" action will simply perform an install, and if the Homebrew Formula for the package is newer, it will upgrade.
- Likewise, Homebrew doesn't have a purge, but the "purge" action will act like "remove".
Examples
package "mysql" do
action :install
end
homebrew_package "mysql"
package "mysql" do
provider Chef::Provider::Package::Homebrew
end
homebrew_tap
LWRP for brew tap
, a Homebrew command used to add additional formula
repositories. From the brew
man page:
tap [tap]
Tap a new formula repository from GitHub, or list existing taps.
tap is of the form user/repo, e.g. brew tap homebrew/dupes.
Default action is :tap
which enables the repository. Use :untap
to
disable a tapped repository.
Examples
homebrew_tap "homebrew/dupes"
homebrew_tap "homebrew/dupes" do
action :untap
end
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Run the tests, ensuring they all pass (with travis)
- Submit a Pull Request using Github
Dependent cookbooks
dmg >= 0.0.0 |
composer >= 0.0.0 |
apt >= 0.0.0 |
rvm >= 0.0.0 |
apache2 >= 0.0.0 |
percona >= 0.0.0 |
newrelic >= 0.0.0 |
pivotal-workstation >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.1 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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: applications/metadata.rb:1
FC065: Ensure source_url is set in metadata: applications/metadata.rb:1
FC066: Ensure chef_version is set in metadata: applications/metadata.rb:1
FC069: Ensure standardized license defined in metadata: applications/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/package.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/sublime_package.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/tap.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/package.rb:43
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/sublime_package.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/tap.rb:7
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/tap.rb:16
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:2
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:7
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:12
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:17
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:22
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:27
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:32
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:37
FC121: Cookbook depends on cookbook made obsolete by Chef 14: applications/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.1 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.0.1 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 include a tag that matches this cookbook version number
0.0.1 failed this metric
0.0.1 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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: applications/metadata.rb:1
FC065: Ensure source_url is set in metadata: applications/metadata.rb:1
FC066: Ensure chef_version is set in metadata: applications/metadata.rb:1
FC069: Ensure standardized license defined in metadata: applications/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/package.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/sublime_package.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/tap.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/package.rb:43
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/sublime_package.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/tap.rb:7
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/tap.rb:16
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:2
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:7
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:12
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:17
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:22
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:27
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:32
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:37
FC121: Cookbook depends on cookbook made obsolete by Chef 14: applications/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.1 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.0.1 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 include a tag that matches this cookbook version number
0.0.1 failed this metric
FC065: Ensure source_url is set in metadata: applications/metadata.rb:1
FC066: Ensure chef_version is set in metadata: applications/metadata.rb:1
FC069: Ensure standardized license defined in metadata: applications/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/package.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/sublime_package.rb:1
FC074: LWRP should use DSL to define resource's default action: applications/resources/tap.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/package.rb:43
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/sublime_package.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/tap.rb:7
FC085: Resource using new_resource.updated_by_last_action to converge resource: applications/providers/tap.rb:16
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:2
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:7
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:12
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:17
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:22
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:27
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:32
FC120: Do not set the name property directly on a resource: applications/recipes/increase_shared_memory.rb:37
FC121: Cookbook depends on cookbook made obsolete by Chef 14: applications/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.1 passed this metric
Testing File Metric
0.0.1 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.0.1 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 include a tag that matches this cookbook version number
0.0.1 failed this metric
0.0.1 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 include a tag that matches this cookbook version number