summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--RELEASE_NOTES.md2
-rw-r--r--Rakefile1
-rw-r--r--cspell.json206
-rw-r--r--lib/chef/resource/dmg_package.rb2
5 files changed, 95 insertions, 119 deletions
diff --git a/.gitignore b/.gitignore
index 52705a76ef..df2d678539 100644
--- a/.gitignore
+++ b/.gitignore
@@ -87,3 +87,6 @@ ext/win32-eventlog/mkmf.log
# ignore byebug command history file.
.byebug_history
+
+# our custom dictionary pulled from https://github.com/chef/chef_dictionary/
+chef_dictionary.txt \ No newline at end of file
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 7bffda017a..6e50d0ea93 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -727,7 +727,7 @@ Several legacy Windows helpers have been deprecated as they will always return t
- Resolved a regression that prevented the `service` resource from working correctly on Windows. Thanks [@Axuba](https://github.com/Axuba)
- Implemented VMware and Hyper-V detection on Linux systems
-- Implemented VMware, Hyper-V, Virtualbox, KVM and Xen detection on Windows systems
+- Implemented VMware, Hyper-V, VirtualBox, KVM and Xen detection on Windows systems
- Added helpers `virtual_system?` and `physical_system?`. Thanks [@tecracer-theinen](https://github.com/tecracer-theinen)
## Ohai 15.9
diff --git a/Rakefile b/Rakefile
index 2949b31cb7..b1eb89c6b9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -111,6 +111,7 @@ end
namespace :spellcheck do
task :run do
+ sh 'wget https://raw.githubusercontent.com/chef/chef_dictionary/master/chef.txt -O chef_dictionary.txt'
sh 'cspell "**/*"'
end
diff --git a/cspell.json b/cspell.json
index ecebba32fb..4d2284d94d 100644
--- a/cspell.json
+++ b/cspell.json
@@ -4,6 +4,14 @@
"version": "0.1",
// language - current active spelling language
"language": "en",
+ "dictionaryDefinitions": [
+ {
+ "name": "chef",
+ "file": "./chef_dictionary.txt",
+ "description": "Custom Chef Dictionary"
+ }
+ ],
+ "dictionaries": ["chef"],
// words - list of words to be always considered correct
"words": [
"aarch",
@@ -14,7 +22,6 @@
"ACLs",
"ACPI",
"activationkey",
- "activesupport",
"ADAP",
"addlock",
"addrs",
@@ -27,6 +34,7 @@
"agrs",
"airgapped",
"aixinit",
+ "aklyachkin",
"Akzhan",
"Alam",
"Albenzi",
@@ -36,23 +44,16 @@
"Alloc",
"allowselfservice",
"allprofiles",
- "ALLUSERSPROFILE",
"alnum",
"alwayslastline",
"amazonec",
"amazonlinux",
- "americanhanko",
"anewb",
- "angrychef",
"anonymized",
"Antergos",
"APISSL",
- "apparmor",
- "appbundled",
- "appbundler",
"applewood",
"Appscript",
- "appx",
"ARCHITEW",
"archq",
"argdup",
@@ -62,10 +63,10 @@
"ARPHELPLINK",
"ARPPRODUCTICON",
"arry",
- "artem",
- "Artifactory",
"Arțăriși",
+ "artem",
"asdf",
+ "Ásgeirsson",
"Ashwini",
"ASSIGNPRIMARYTOKEN",
"astoltz",
@@ -77,7 +78,6 @@
"AUTHN",
"AUTHROOT",
"AUTHZ",
- "autoconf",
"Autoconverted",
"AUTODATASEG",
"autodetect",
@@ -106,8 +106,8 @@
"BACKOFFICE",
"backport",
"backported",
- "Backporting",
"backporting",
+ "Backporting",
"backslashing",
"backtrace",
"backtraces",
@@ -123,24 +123,14 @@
"basepath",
"basestring",
"baseurls",
- "Bastien",
"bcast",
"Benesch",
- "Berksfile",
- "Berkshelf",
- "BGINFO",
- "bginfo",
"Bianco",
"bigip",
- "bindir",
- "bindirs",
"binfile",
"binlink",
"binmode",
"binread",
- "binstub",
- "binstubs",
- "binutils",
"bitmask",
"bkup",
"blockdev",
@@ -164,8 +154,8 @@
"bufptr",
"bufsize",
"bugfix",
- "Bugfixes",
"bugfixes",
+ "Bugfixes",
"bugfixing",
"bugok",
"Buildkite",
@@ -218,8 +208,8 @@
"chefdk",
"cheffish",
"cheffs",
- "Chefignore",
"chefignore",
+ "Chefignore",
"chefignored",
"chefignores",
"chefscriptresult",
@@ -235,8 +225,8 @@
"chilcote",
"CHINESEBIG",
"Chisamore",
- "CHKCONFIG",
"chkconfig",
+ "CHKCONFIG",
"chmod",
"choco",
"Chouhan",
@@ -258,13 +248,13 @@
"clientname",
"CLOEXEC",
"Cloke",
- "Cloudera",
"cloudera",
- "Cmdlet",
+ "Cloudera",
"cmdlet",
+ "Cmdlet",
"cmdlets",
- "CMDS",
"cmds",
+ "CMDS",
"Cmnd",
"cname",
"codepage",
@@ -282,8 +272,8 @@
"computerlevel",
"COMPUTERNAME",
"computersystem",
- "COMSPEC",
"comspec",
+ "COMSPEC",
"concat",
"Cond",
"confd",
@@ -303,8 +293,8 @@
"convertto",
"cookbookname",
"cookiecurse",
- "Cookstyle",
"cookstyle",
+ "Cookstyle",
"coookbook",
"copypasta",
"coreutils",
@@ -324,7 +314,6 @@
"Crosta",
"CRYPTOPROTECT",
"CRYPTPROTECT",
- "cscript",
"cssh",
"csshx",
"csum",
@@ -338,8 +327,9 @@
"Daemonization",
"daemonize",
"daemonized",
- "Daemonizing",
"daemonizing",
+ "Daemonizing",
+ "damacus",
"danielfloyd",
"Danna",
"databag",
@@ -379,6 +369,7 @@
"depsolved",
"Depsolving",
"derekgroh",
+ "Désarmes",
"DESCR",
"deserialization",
"destdir",
@@ -411,8 +402,8 @@
"disablerepo",
"DISCARDABLE",
"DISCARDNS",
- "DISM",
"dism",
+ "DISM",
"displayname",
"distro",
"distros",
@@ -424,8 +415,8 @@
"dockerignore",
"dockerinit",
"Doherty",
- "Dokken",
"dokken",
+ "Dokken",
"domainandname",
"domainname",
"domainuser",
@@ -456,18 +447,17 @@
"dup'd",
"DUPEUX",
"duvian",
- "DWORD",
"dword",
+ "DWORD",
"DWORDLONG",
"DYNALINK",
"DYNLINK",
- "Désarmes",
"EACCES",
"Eachern",
"EASTEUROPE",
"EBUSY",
- "ECDSA",
"ecdsa",
+ "ECDSA",
"eckey",
"ECONNREFUSED",
"ECONNRESET",
@@ -487,8 +477,8 @@
"enablement",
"enablerepo",
"encap",
- "Encryptor",
"encryptor",
+ "Encryptor",
"endlocal",
"ENOENT",
"entriesread",
@@ -509,10 +499,10 @@
"ESRCH",
"etag",
"etags",
- "Etcd",
"etcd",
- "ETHTOOL",
+ "Etcd",
"ethtool",
+ "ETHTOOL",
"ETIMEDOUT",
"euca",
"Eugen",
@@ -531,8 +521,8 @@
"EXTGLOB",
"extname",
"extrastuff",
- "Exts",
"exts",
+ "Exts",
"FACs",
"failburger",
"FAILCRITICALERRORS",
@@ -551,8 +541,8 @@
"fatals",
"fauxhai",
"featurename",
- "FFLAGS",
"fflags",
+ "FFLAGS",
"Fichter",
"fieldname",
"Fileexists",
@@ -580,17 +570,17 @@
"fnmatch",
"fonttbl",
"foobarbam",
- "Foodcritic",
"foodcritic",
+ "Foodcritic",
"foorb",
"FORCEMINIMIZE",
"FORCEOFFFEEDBACK",
"FORCEONFEEDBACK",
- "Forwardable",
"forwardable",
+ "Forwardable",
"forwardslashes",
- "FQDN",
"fqdn",
+ "FQDN",
"fqdns",
"freakinhippie",
"freebsd",
@@ -605,8 +595,8 @@
"FULLSCREEN",
"fuzzifier",
"fuzzify",
- "Fuzzyurl",
"fuzzyurl",
+ "Fuzzyurl",
"fzipi",
"gaffneyc",
"gecos",
@@ -734,13 +724,13 @@
"HMODULE",
"HMONITOR",
"HOMEDRIVE",
- "HOMEPATH",
"homepath",
+ "HOMEPATH",
"HOMESHARE",
"Hongli",
"hostnamectl",
- "Hostnames",
"hostnames",
+ "Hostnames",
"hostport",
"hostspec",
"hostspecific",
@@ -765,8 +755,8 @@
"hyperv",
"icacls",
"ichannel",
- "ICMP",
"icmp",
+ "ICMP",
"iconlocation",
"idempotence",
"idempotency",
@@ -775,8 +765,8 @@
"IEND",
"iface",
"ifcfg",
- "Ifconfig",
"ifconfig",
+ "Ifconfig",
"ifdef",
"IGNORECASE",
"IHDR",
@@ -787,8 +777,8 @@
"includedir",
"includepkgs",
"includer",
- "Indentable",
"indentable",
+ "Indentable",
"indentt",
"inet",
"inetd",
@@ -809,8 +799,8 @@
"inpipe",
"INPORT",
"inputformat",
- "Inspec",
"inspec",
+ "Inspec",
"insserv",
"installable",
"INSTALLDIR",
@@ -832,12 +822,12 @@
"invokereturnasis",
"Ionuț",
"IOPL",
- "IPADDR",
"ipaddr",
+ "IPADDR",
"ipaddress",
"Ippolito",
- "Ipscopes",
"ipscopes",
+ "Ipscopes",
"ipsec",
"iptables",
"Ireton",
@@ -885,8 +875,8 @@
"Kapil",
"katello",
"Kauppila",
- "Kaustubh",
"kaustubh",
+ "Kaustubh",
"Keane",
"keepalive",
"keepalives",
@@ -950,8 +940,8 @@
"LIBPATH",
"libtool",
"libvirt",
- "Libxml",
"libxml",
+ "Libxml",
"libxslt",
"libyaml",
"lifecycle",
@@ -1040,8 +1030,8 @@
"Magnus",
"Maier",
"mailservers",
- "MAILSLOT",
"mailslot",
+ "MAILSLOT",
"mailto",
"mainloop",
"Mainmodule",
@@ -1053,8 +1043,8 @@
"malloc",
"Mandi",
"mandriva",
- "Mangeia",
"mangeia",
+ "Mangeia",
"Manjaro",
"manpages",
"Manyanza",
@@ -1070,8 +1060,8 @@
"MAXDWORD",
"mbrtowc",
"mbtowc",
- "Mdadm",
"mdadm",
+ "Mdadm",
"MDICHILD",
"MEDIUMBUSINESS",
"megamorf",
@@ -1079,13 +1069,13 @@
"memlock",
"memoizes",
"memoizing",
- "Merb",
"merb",
+ "Merb",
"merlinjim",
"MESSAGEDEST",
"MESSAGENAME",
- "METAFILE",
"metafile",
+ "METAFILE",
"metalink",
"Miah",
"michaellihs",
@@ -1102,15 +1092,15 @@
"mirrorlist",
"mirrorlists",
"MITM",
- "Mixins",
"mixins",
+ "Mixins",
"mixlib",
"mkdir",
"mkgroup",
"mkmf",
"mkswap",
- "MKTEMP",
"mktemp",
+ "MKTEMP",
"mktmpdir",
"mname",
"mntfs",
@@ -1143,13 +1133,13 @@
"msys",
"MSYSTEM",
"Mtyj",
- "MULTICAST",
"Multicast",
+ "MULTICAST",
"multiline",
"multipackage",
"multiplatform",
- "Multiresource",
"multiresource",
+ "Multiresource",
"multitenant",
"multithreaded",
"Multiuser",
@@ -1163,8 +1153,8 @@
"Mware",
"myapp",
"mycert",
- "Mycook",
"mycook",
+ "Mycook",
"mycorp",
"mydirectory",
"myecrequest",
@@ -1187,8 +1177,8 @@
"nagios",
"nameservers",
"namespacing",
- "Nano",
"nano",
+ "Nano",
"Nathen",
"nathwill",
"NCRC",
@@ -1249,8 +1239,8 @@
"NOGPFAULTERRORBOX",
"nogpgcheck",
"nokeys",
- "Nokogiri",
"nokogiri",
+ "Nokogiri",
"NOLICPROMPT",
"nologo",
"NOLOGON",
@@ -1263,8 +1253,8 @@
"nopasswd",
"noprofile",
"noprogressbar",
- "NORESTART",
"norestart",
+ "NORESTART",
"nospace",
"nospinner",
"notapplicable",
@@ -1291,8 +1281,8 @@
"objfs",
"objs",
"OEMCP",
- "Ohai",
"ohai",
+ "Ohai",
"Ojeda",
"oldguard",
"OLDLOGLOCATION",
@@ -1306,8 +1296,8 @@
"oneshot",
"onidle",
"onlogon",
- "ONPARENT",
"onparent",
+ "ONPARENT",
"onstart",
"openbsd",
"openid",
@@ -1315,8 +1305,8 @@
"opensolaris",
"openssh",
"openssl",
- "Openstack",
"openstack",
+ "Openstack",
"opensuse",
"opensuseleap",
"openvpn",
@@ -1349,8 +1339,8 @@
"parms",
"passstr",
"passw",
- "Passwd",
"passwd",
+ "Passwd",
"passwordage",
"passwordless",
"PASSWORDNAME",
@@ -1411,8 +1401,8 @@
"plutil",
"PNAME",
"Policybuilder",
- "Policyfile",
"policyfile",
+ "Policyfile",
"Policyfiles",
"POLICYNAME",
"popen",
@@ -1462,10 +1452,10 @@
"PROTSEQ",
"PROTSEQS",
"proxified",
- "Proxifier",
"proxifier",
- "PSAPI",
+ "Proxifier",
"psapi",
+ "PSAPI",
"pschaumburg",
"Pscx",
"Psec",
@@ -1518,8 +1508,8 @@
"RBAC",
"rbag",
"rbconfig",
- "RBENV",
"rbenv",
+ "RBENV",
"rcscript",
"rcvar",
"rdoc",
@@ -1530,8 +1520,8 @@
"realloc",
"realname",
"realpath",
- "Rebooter",
"rebooter",
+ "Rebooter",
"rebootnow",
"rebuilddb",
"reconfig",
@@ -1545,8 +1535,8 @@
"REDIRECTOR",
"Redistributable",
"redownloading",
- "Reenable",
"reenable",
+ "Reenable",
"reenabled",
"reenabling",
"refcount",
@@ -1589,8 +1579,8 @@
"retriable",
"REXML",
"rhash",
- "RHEL",
"rhel",
+ "RHEL",
"rhosts",
"rhscl",
"rhsm",
@@ -1626,8 +1616,8 @@
"rubyinstaller",
"RUBYLIB",
"RUBYOPT",
- "Rubyzip",
"rubyzip",
+ "Rubyzip",
"Rudikza",
"runas",
"rundeck",
@@ -1639,8 +1629,8 @@
"runlock",
"runpid",
"runrun",
- "Runtimes",
"runtimes",
+ "Runtimes",
"RXACT",
"rxhash",
"rxvlan",
@@ -1702,6 +1692,7 @@
"SETTINGCHANGE",
"setuid",
"SETX",
+ "sfiggins",
"sftp",
"Shamrell",
"Sharad",
@@ -1755,8 +1746,8 @@
"skus",
"slapadd",
"slapd",
- "SLES",
"sles",
+ "SLES",
"Sliim",
"SMALLBUSINESS",
"SMARTCARD",
@@ -1771,15 +1762,16 @@
"snapd",
"Snapp",
"snmp",
- "Socketless",
"socketless",
- "Softlayer",
+ "Socketless",
"softlayer",
+ "Softlayer",
"softwareupdate",
"Solaris",
"SOLOEXEC",
"Solr",
"solv",
+ "Sölvi",
"somedir",
"somefile",
"someotherfile",
@@ -1815,16 +1807,16 @@
"STARTUPINFO",
"stdcall",
"stdlib",
- "Stepable",
"stepable",
+ "Stepable",
"stopsrc",
"strace",
"Stratton",
"strftime",
"stringio",
"strptime",
- "Struct",
"struct",
+ "Struct",
"stubabble",
"stubbable",
"subclassable",
@@ -1866,16 +1858,16 @@
"swapon",
"swappable",
"swappiness",
- "Symlink",
"symlink",
+ "Symlink",
"symlinked",
"symlinking",
"symlinks",
"sync",
"syntaxcache",
"sysadminctl",
- "Sysconf",
"sysconf",
+ "Sysconf",
"sysconfig",
"sysctl",
"sysctld",
@@ -1886,10 +1878,10 @@
"sysread",
"systctl",
"systemctl",
- "Systemd",
"systemd",
- "SYSTEMDRIVE",
+ "Systemd",
"systemdrive",
+ "SYSTEMDRIVE",
"systemrestart",
"SYSTEMROOT",
"systemsetup",
@@ -1897,7 +1889,6 @@
"SYSTEMSTART",
"Systemtime",
"syswrite",
- "Sölvi",
"Taddeo",
"Tahoma",
"TAKAHASHI",
@@ -1970,8 +1961,8 @@
"udiff",
"UHALF",
"uids",
- "UINT",
"uint",
+ "UINT",
"ulimit",
"ulong",
"ULONGLONG",
@@ -1991,8 +1982,8 @@
"UNEXP",
"UNEXPORTED",
"unforked",
- "Unformatter",
"unformatter",
+ "Unformatter",
"unhold",
"unignored",
"uninst",
@@ -2022,8 +2013,8 @@
"untap",
"untar",
"untracked",
- "Untrusted",
"untrusted",
+ "Untrusted",
"unversioned",
"UNWRITABLE",
"upcase",
@@ -2088,14 +2079,10 @@
"VIOKBD",
"Virender",
"virt",
- "Virtualbox",
- "virtualbox",
- "visudo",
"Vitruvius",
"Vitvitskiy",
"vkhatri",
"VLAN",
- "vlan",
"VMBUS",
"vmware",
"voidcmd",
@@ -2138,8 +2125,8 @@
"winevt",
"Winmgmt",
"winmgmts",
- "WINNT",
"winnt",
+ "WINNT",
"winprog",
"winrm",
"Winsor",
@@ -2151,19 +2138,16 @@
"woot",
"wordpress",
"workdir",
- "Workgroup",
- "workgroup",
"WPARAM",
"wrlinux",
- "Wrock",
"WSCHILD",
"wstring",
"wtime",
"xabcz",
"Xabier",
"xargs",
- "XATTR",
"xattr",
+ "XATTR",
"xchar",
"Xcode",
"xdigit",
@@ -2172,11 +2156,8 @@
"XFORM",
"xinetd",
"XMLHTTP",
- "Xorima",
"xproto",
"Xtdate",
- "yajl",
- "yardoc",
"yieldparam",
"yocto",
"yolo",
@@ -2193,17 +2174,8 @@
"zmscwx",
"zolo",
"zombiejs",
- "zoneinfo",
- "Zpool",
"Zuazo",
- "Zygmuntowicz",
- "zypp",
- "Zypper",
- "zypper",
- "Ásgeirsson",
- "damacus",
- "sfiggins",
- "aklyachkin"
+ "Zygmuntowicz"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
diff --git a/lib/chef/resource/dmg_package.rb b/lib/chef/resource/dmg_package.rb
index 1b996e4c5e..c6cd04156c 100644
--- a/lib/chef/resource/dmg_package.rb
+++ b/lib/chef/resource/dmg_package.rb
@@ -38,7 +38,7 @@ class Chef
end
```
- **Install Virtualbox from the .mpkg**:
+ **Install VirtualBox from the .mpkg**:
```ruby
dmg_package 'Virtualbox' do