summaryrefslogtreecommitdiff
path: root/lib/chef/resource/mount.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-081-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-1/+1
| | | | | | | 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>
* Skip more resources and set others to desired state falseresource_descriptionsTim Smith2018-10-301-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Allow passing array to supports in mount againmount_arrayTim Smith2018-10-271-2/+2
| | | | | | | We try to coerce the array into a Hash, but we don't allow the Array value. This makes this actually work as we documented it. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add a tiny bit more yardTim Smith2018-09-201-1/+1
| | | | | | Bump when we're going to kill this off so we can search for Chef-15 in the codebase. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional resource descriptionsTim Smith2018-09-061-18/+45
| | | | | | Filling in more of the missing resource descriptions using the descriptions straight from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Clean up mount provider teststm/6851Thom May2018-03-141-4/+5
| | | | Signed-off-by: Thom May <thom@chef.io>
* update mount to use properties and fix 6851Thom May2018-03-141-124/+17
| | | | Signed-off-by: Thom May <thom@chef.io>
* Add more introduced and description fields to resourcesdescriptions_v2Tim Smith2018-02-221-1/+1
| | | | 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>
* Fixed mistake added while removing old :password attribute definitionDmitry Shestoperov2017-09-261-1/+0
| | | | Signed-off-by: Dmitry Shestoperov <dmitry@shestoperov.info>
* password property of mount resurce is sensitiveDmitry Shestoperov2017-09-261-8/+3
| | | | Signed-off-by: Dmitry Shestoperov <dmitry@shestoperov.info>
* Fix the default on Mount#supports as some tests mutate it in-place.Noah Kantrowitz2017-04-031-1/+1
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* add back the Array form of setting supportsLamont Granquist2017-03-071-1/+2
| | | | | | | bonus fix: i believe the array form was mutating the default values, it should stop doing that now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove most of supports APILamont Granquist2017-03-061-12/+4
| | | | | | | | | | | | | | | still there on service (where it makes some sense) also still on mount (because i have no idea if that is actively being used or if it makes any sense at all). converts it to a property on mount + service as well. also removed setting it as an array -- did we ever document that and/or does anyone use it? i'm not religiously against that way of setting it, but if nobody ever used it i'd rather remove the YAGNI. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Alias unmount to umount for mount resourceGrant Ridder2016-11-301-1/+1
| | | | | | | | Allows the usage of `action :unmount` to `umount` a mount point Closes https://github.com/chef/chef/issues/5595 Signed-off-by: Grant Ridder <shortdudey123@gmail.com>
* Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-13/+13
| | | | no enforced trailing comma on arguments...
* autofixing whitespace copsLamont Granquist2016-02-051-15/+15
| | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | 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"
* Use double quotes by defaultThom May2016-01-141-3/+3
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-13/+13
| | | | chefstyle -a fixed 1044 occurrances
* Make ProviderResolver tests work, fix resources to resolve correctly as well ↵John Keiser2015-06-301-0/+8
| | | | as providers
* Overwrite resource_name with providesJohn Keiser2015-06-081-2/+0
|
* Add default_action and allowed_actions to Resource class, remove from LWRPJohn Keiser2015-06-011-2/+3
|
* 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-1/+0
|
* provider_resolver migration from provider_mappingLamont Granquist2015-03-041-0/+2
| | | | | | | | - move macosx providers to dynamic resolution - move windows providers to dynamic resolution - move openbsd/netbsd providers to dynamic resolution - move all cron providers to dynamic resolution - move mdadm to static mapping
* CHEF-1737: Fix noauto support.markgibbons2014-08-211-0/+9
| | | | | Add fsck device support. Allow vxfs device types.
* ruby 1.8.7 trololololololing me...Lamont Granquist2014-06-021-1/+1
|
* srsly i hate ruby 1.8.7Lamont Granquist2014-06-021-1/+1
|
* remove accidentally duplicated lineLamont Granquist2014-06-021-1/+0
|
* move validation to resource codeLamont Granquist2014-06-021-2/+8
|
* [CHEF-5163] Support lazy evaluation the mount resource's options attrSteven Danna2014-04-021-9/+9
| | | | | | | set_or_return calls #call on any DelayedEvaluator on read and compares the results against the parameter validations. This patch adds String to the evaluation but ensure that someone reading the options value will only ever get an Array, keeping the original contract.
* Normalize whitespace on all filesSeth Vargo2013-09-261-12/+11
|
* Changed the attribute namesMukta A2013-06-111-10/+10
|
* Support username, password, domain for mounting windows drivesMukta A2013-06-111-2/+29
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+139
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!