summaryrefslogtreecommitdiff
path: root/lib/chef/run_lock.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-5/+5
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-1/+1
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-5/+5
| | | | | | | 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>
* Fix a sentence in run_lock and the knife test to match the latest output changesTensibai2019-05-021-1/+1
| | | | Signed-off-by: Tensibai <tensibai@iabis.net>
* Replacing workmarks with distro constantsMarc Chamberland2019-04-191-1/+2
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* auto fixing some rubocopsLamont Granquist2016-02-091-1/+1
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* 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-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"
* Force config file setting to absolute path in chef-clientdanielsdeleo2016-01-271-1/+1
|
* Use double quotes by defaultThom May2016-01-141-8/+8
| | | | | | | 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.
* Add tests for things that have created the lockfile but not yet acquired the ↵John Keiser2015-09-291-21/+30
| | | | lock
* convert cli argument to int, tidy exception messageClaire McQuin2014-05-061-2/+5
|
* add option to abandon chef run if blocked by another for too longClaire McQuin2014-05-051-4/+40
|
* Clean out the comments and reorganize code in run_lock.rbsersut2013-10-151-10/+17
|
* Windows support for Chef::Runlock.sersut2013-10-141-12/+41
| | | | This ensures that if someone does a manual chef-client run, it doesn't fail if the chef is configured as a service on windows and if there is a chef-client run happening right now. The newly started run will wait for the old run to finish and continue after it.
* Use RunLock while daemonizing which is based on flock to prevent race ↵sersut2013-10-091-14/+29
| | | | conditions.
* Make waiting for the release of the lock optional in RunLock class.sersut2013-10-071-6/+14
|
* Use Chef::Config defaults for lockfile defaultJohn Keiser2013-09-161-9/+3
|
* Merge pull request #843 from opscode/lcg/warn-run-locklamont-granquist2013-06-211-1/+1
|\ | | | | to see this on command line with default :auto level we need to warn
| * to see this on command line with default :auto level we need to warnLamont Granquist2013-06-201-1/+1
| |
* | add test, bitwise arithm, note about 1.8/1.9/2.0 differencesLamont Granquist2013-06-201-1/+2
| |
* | use F_CLOEXEC if we canLamont Granquist2013-06-141-0/+5
|/
* [CHEF-3617] create full path of run lock fileSeth Chisamore2012-11-171-0/+6
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+84
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!