cookbook 'safari', '= 0.1.0'
safari (5) Versions 0.1.0 Follow0
Configures Safari browser
cookbook 'safari', '= 0.1.0', :supermarket
knife supermarket install safari
knife supermarket download safari
Safari Cookbook
This cookbook provides safari_version
library method to retrieve safari version installed.
Requirements
Chef 11.14.2 or higher.
Platforms
- Mac OS X
Usage
Include the safari as a dependency to make library method available.
Library method safari_version
is provided to retrieve CFBundleShortVersionString by default:
version = safari_version # => 8.0.4
You can return other version types by passing its name (e.g. BuildVersion, CFBundleVersion, ProjectName or
SourceVersion)
bundle_version = safari_version('CFBundleVersion') # => 10600.4.10.7
Tip: use allow_any_instance_of
to stub safari_version method when testing with rspec:
allow_any_instance_of(Chef::Recipe).to receive(:safari_version).and_return('8.0.4')
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to CONTRIBUTING.
License
MIT - see the accompanying LICENSE file for details.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
safari Changelog
1.0.9
- Revert fix for apt-get issue with updated Google sign key
1.0.8
- Add apt unit tests
1.0.7
- Fix apt-get issue with updated Google sign key
1.0.6
- Fix windows master preferences path
1.0.5
- Fix mac issues
1.0.4
- Fix rubocop offenses
1.0.3
- Fix readme rendering issue on supermarket
1.0.2
- Rename .chefignore to chefignore
1.0.1
- Fix Chef Client 12 introduced error: undefined method `new' for safari:Module
- Remove trailing space from safari_version
- Add .chefignore
1.0.0
- Support multiple platforms
- Rename preferences resource to master_preferences
0.4.0
- Add 64-bit support for windows
0.3.0
- Add safari_version method
- Install safari at compile time
- Warn if not windows platform
0.2.0
- Add preferences resource
0.1.0
- Initial release
Foodcritic Metric
0.1.0 failed this metric
FC005: Avoid repetition of resource declarations: /tmp/cook/17ddefda99d32f6357c93460/safari/providers/extension.rb:7
0.1.0 failed this metric