summaryrefslogtreecommitdiff
path: root/lib/chef/provider/route.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow specifying a comment for routesThomas Doherty2018-03-011-1/+2
| | | | Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
* prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-171-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* [Route unit tests]: Ensure we go down the new file pathtm/route_testsThom May2017-10-031-1/+1
| | | | | | This should make us more robust in the face of the enemy Signed-off-by: Thom May <thom@chef.io>
* Refactor and add an additional unit testTom Doherty2017-09-111-15/+24
| | | | Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
* Simplify and add unit test for default routeTom Doherty2017-09-111-10/+4
| | | | Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
* Allow specifying default gateway on RHEL/CentosTom Doherty2017-09-111-5/+21
| | | | Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
* Chef-13: remove deprecated run_command API entirelyLamont Granquist2017-03-311-2/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* support why-run by defaultlcg/default-whyrun-supportedLamont Granquist2017-03-011-4/+0
| | | | | | | this should fix several bugs in providers that look like they should support whyrun but fail to declare it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use CIDR block rather than netmask in route-eth0 fileTom Duffield2017-01-311-1/+1
| | | | | | Convert the netmask into the CIDR block for the route-eth0 file. Signed-off-by: Tom Duffield <tom@chef.io>
* cleanup of ifconfig and route providerslcg/route-ifconfigLamont Granquist2016-12-221-184/+186
| | | | | | | | * run_command elimination * shell_out array usage * other misc cleanup Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/SpaceInsideStringInterpolationLamont Granquist2016-12-061-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge branch 'route_logic_fix' of https://github.com/petracvv/chef into ↵Thom May2016-02-161-1/+1
|\ | | | | | | petracvv-route_logic_fix
| * Don't use routes with action :delete when writing configMihai Petracovici2015-08-251-1/+1
| |
* | autofixing whitespace copsLamont Granquist2016-02-051-183/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* | Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | | | | 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-42/+42
|/ | | | | | | 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.
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-0/+2
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* [CHEF-3332] removed not needed "action" argument from #generate_config methodXabier de Zuazo2013-05-241-4/+4
|
* [CHEF-3332] changed generate_config to receive action as argument, avoids ↵Xabier de Zuazo2013-05-241-4/+4
| | | | doing resource.action.last on #generate_config
* [CHEF-3332] Fixed: The route resource provider will always delete config ↵Xabier de Zuazo2013-05-241-2/+6
| | | | file even for :add action
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+223
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!