summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service.rb
Commit message (Collapse)AuthorAgeFilesLines
* mechanical conversion of most debug log statements to traceThom May2018-03-261-14/+14
| | | | Signed-off-by: Thom May <thom@chef.io>
* chef code changes for changing amazon platform_familyLamont Granquist2017-04-031-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13: remove deprecated run_command API entirelyLamont Granquist2017-03-311-3/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* support why-run by defaultlcg/default-whyrun-supportedLamont Granquist2017-03-011-5/+1
| | | | | | | 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>
* cleans up the remaining new/current_resource ivarslcg/remove-ivarsLamont Granquist2017-02-151-48/+48
| | | | | | switches from using ivars to accessors for getters Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-131-1/+1
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* error out if provider doesn't support user servicesDavide Cavalca2016-03-041-0/+9
|
* rework to use service resource directly instead of subclassingDavide Cavalca2016-02-221-0/+38
|
* rework to use a subclassed SystemdService resourceDavide Cavalca2016-02-221-37/+0
|
* raise UnsupportedAction for mask / unmask in the base classDavide Cavalca2016-02-221-0/+8
|
* Extend service resource to support maskingDavide Cavalca2016-02-221-0/+29
|
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-2/+2
|
* auto fixing some rubocopsLamont Granquist2016-02-091-2/+2
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | 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"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-141-15/+15
| | | | | | | 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.
* chefstyle: fix Lint/StringConversionInInterpolationLamont Granquist2016-01-121-7/+7
| | | | useless use of `"#{foo.to_s}"`
* add better documentation to this methodLamont Granquist2015-11-241-10/+13
| | | | | it violates our dont-violate-the-new-resource policy for a reason, but is likely still buggy if the resource gets reused.
* fix supports hash issues in service providersLamont Granquist2015-08-251-2/+12
| | | | | | | - redhat provider now allows the user to override :status - gentoo provider now allows the user to override :status and :restart - service providers now dup the status hash and mutate their private copy instead of mutating the new_resource
* Re-separate priority map and DSL handler map so that provides has veto power ↵John Keiser2015-07-061-22/+4
| | | | over priority
* Remove generic provides :package and provides :service from base classesJohn Keiser2015-06-021-2/+0
|
* Move provider_mapping values out into the actual resource classesJohn Keiser2015-06-021-51/+45
|
* DRY the service priorities a bitJohn Keiser2015-06-021-74/+52
|
* Use the central priority map for `provides`John Keiser2015-06-021-0/+74
|
* Enable Windows services to run as a different user (CHEF-4921). This adds ↵cdoherty-enhance-win-serviceChris Doherty2014-12-191-1/+1
| | | | | | | | :run_as_user and :run_as_password attributes to the windows_service resource. If a logon user is specified, the resource will (on every run) grant the logon-as-service privilege to that user, using secedit.exe.
* Normalize whitespace on all filesSeth Vargo2013-09-261-2/+2
|
* Merge branch '10-stable'Bryan McLellan2012-11-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: chef-expander/lib/chef/expander/version.rb chef-server-api/lib/chef-server-api/version.rb chef-server-webui/lib/chef-server-webui/version.rb chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef/lib/chef/encrypted_data_bag_item.rb chef/spec/unit/encrypted_data_bag_item_spec.rb ci/jenkins_run_tests.bat ci/jenkins_run_tests.sh lib/chef/provider.rb spec/unit/knife/data_bag_from_file_spec.rb spec/unit/provider/remote_directory_spec.rb spec/unit/provider/route_spec.rb
* | [CHEF-3604] why run assertions should pass on custom service commandsSeth Chisamore2012-11-131-0/+5
| |
* | [CHEF-3603] add init_command attribute to service resourceSeth Chisamore2012-11-131-0/+10
| |
* | [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+158
|/ | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-081-86/+0
| | | | all with proper deps
* Clarified some of the error messagesAJ Christensen2008-10-011-7/+15
|
* Init provider for service and relevant work in other providers. Updated ↵AJ Christensen2008-10-011-0/+2
| | | | resource spec a little.
* Moving some stuff around. Almost functional init provider.AJ Christensen2008-10-011-6/+0
|
* Working towards supports[:has_status] etc.AJ Christensen2008-10-011-0/+1
|
* Made service.rb setup a @current_resource and debian.rb super to get at it.AJ Christensen2008-10-011-0/+5
|
* Working Debian service provider for enabling/disabling services.AJ Christensen2008-10-011-20/+19
| | | | TODO: Base and Init providers that support status and start/stopping init scripts.
* All of my service resource work so far.AJ Christensen2008-10-011-0/+48
| | | | TODO: make it work
* Adjusted the copyright disclaimer - I guess I should be doing this on files ↵AJ Christensen2008-10-011-1/+1
| | | | | | I author? A little more boilerplate too
* Boilerplate for Service resource and Debian providerAJ Christensen2008-10-011-0/+29