summaryrefslogtreecommitdiff
path: root/lib/chef/resource/freebsd_package.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use .match? not =~ when match values aren't necessaryTim Smith2020-06-111-1/+1
| | | | | | Autocorrected from RuboCop Performance which is now smart enough to detect when you use the match and when you don't. Using match? does not create any objects so it's slightly faster and uses less memory. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add missing examples and resource formatting for docs siteTim Smith2020-04-301-1/+1
| | | | | | Get us closer to automated documentation. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove the canonical DSLLamont Granquist2020-03-031-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Don't require/include Mixin Shellout in freebsd_package and openbsd_packagemixin_shell_outTim Smith2020-02-281-3/+0
| | | | | | This comes for free with Resource and these are the only two resources that were doing it. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add compile_time property to all resources (#9360)Lamont Granquist2020-02-111-1/+1
| | | | | | | | | | | This eliminates one thing that people need to memorize The ohai_hint and hostname resources still default to true This also forces the resource to `action :nothing` in the converge phase automatically, which is a behavior which has been missed up until now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* WIP: Chef-16 resource cleanup + unified_mode (#9174)Lamont Granquist2020-01-211-1/+2
| | | | | | * Chef-16 resource cleanup + unified_mode Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-4/+4
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove deprecated support for FreeBSD pkg providerfreebsdTim Smith2018-10-281-19/+1
| | | | | | We continue to support pkgng which shipped in FreeBSD 10. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/HashSyntaxLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Unification of shell_out APIsLamont Granquist2018-06-151-1/+1
| | | | | | | converts all usage to just shell_out() from the numerous helper utilities that we've had previously. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Deprecated the Chef::Provider::Package::Freebsd::Pkg providerTim Smith2018-06-071-0/+2
| | | | | | FreeBSD 10 and later have pkgng and Chef will use that instead. This Oct even FreeBSD 10 goes fully EOL so we'll be supporting multiple EOL versions back come April. We should speed up this resource and simplify things by removing the unnecessary provider and the logic that decides which one to use. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add new introduced and description resource properties to many resourceTim Smith2018-02-141-1/+2
| | | | | | Not all of them, but a good chunk. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add descriptions and @since comments to all resourcesTim Smith2017-12-191-0/+1
| | | | | | From the docs site Signed-off-by: Tim Smith <tsmith@chef.io>
* Add a few more comments to resourcesTim Smith2017-12-131-2/+9
| | | | | | I try to add them as I read through resources Signed-off-by: Tim Smith <tsmith@chef.io>
* package provider cleanuplcg/package-cleanupLamont Granquist2017-02-111-1/+1
| | | | | | | | | - cleans up a lot of ivar usage - converts most providers to shell_out_compact_timeout! - almost deprecates a few APIs, but can't quite yet - windows providers need mixlib-shellout to take an argv Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix freebsd_package to use new node syntax and detect os_version correctlyJohn Keiser2016-08-031-1/+1
|
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-2/+2
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-5/+5
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Use properties in package resourcesjk/package-propertiesJohn Keiser2015-12-151-1/+2
|
* Overwrite resource_name with providesJohn Keiser2015-06-081-1/+0
|
* Add use_automatic_resource_nameJohn Keiser2015-06-011-1/+1
|
* Make resource_name call providesJohn Keiser2015-06-011-1/+1
|
* Move resource_name up to Resource, and figure out its value automaticallyJohn Keiser2015-06-011-5/+1
|
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-1/+1
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Removing all traces of 'created_as_type' since that fix is no longer necessarytyler-ball2014-10-161-12/+0
|
* Move supports_with_pkgng? check to the freebsd_package package.Cory Stephenson2014-08-281-11/+10
|
* Have freebsd port use pkg info if the freebsd version is >= 10000017Cory Stephenson2014-08-241-2/+2
|
* Make sure freebsd_package is captured with the resource name it's declared ↵Serdar Sutay2014-08-131-2/+10
| | | | with in resource collection.
* Access source instance variable directly when setting providerRichard Manyanza2014-03-281-1/+1
|
* Refactor resolving of Freebsd package providerRichard Manyanza2014-03-121-2/+38
|
* Refactor FreeBSD package providersRichard Manyanza2014-03-111-2/+2
|
* Normalize whitespace on all filesSeth Vargo2013-09-261-4/+4
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+35
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!