summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-28 10:24:36 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-28 10:30:32 -0700
commit5aefd6da7b65e491467970df1da1da8393be8da4 (patch)
tree22374a9352754acd4dff977bea4795f9e1d79e81
parente73f02eb5bf1b3a78c8912716ecb95ffdfc78849 (diff)
downloadmixlib-shellout-spelling.tar.gz
Fix a few typosspelling
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/mixlib/shellout.rb2
-rw-r--r--lib/mixlib/shellout/helper.rb2
-rw-r--r--lib/mixlib/shellout/windows.rb2
-rw-r--r--spec/mixlib/shellout/windows_spec.rb2
-rw-r--r--spec/mixlib/shellout_spec.rb4
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/mixlib/shellout.rb b/lib/mixlib/shellout.rb
index b44e0aa..2b998ab 100644
--- a/lib/mixlib/shellout.rb
+++ b/lib/mixlib/shellout.rb
@@ -122,7 +122,7 @@ module Mixlib
# === Options:
# If the last argument is a Hash, it is removed from the list of args passed
# to exec and used as an options hash. The following options are available:
- # * +user+: the user the commmand should run as. if an integer is given, it is
+ # * +user+: the user the command should run as. if an integer is given, it is
# used as a uid. A string is treated as a username and resolved to a uid
# with Etc.getpwnam
# * +group+: the group the command should run as. works similarly to +user+
diff --git a/lib/mixlib/shellout/helper.rb b/lib/mixlib/shellout/helper.rb
index 35184b9..ac63494 100644
--- a/lib/mixlib/shellout/helper.rb
+++ b/lib/mixlib/shellout/helper.rb
@@ -30,7 +30,7 @@ module Mixlib
# These APIs are considered public for use in ohai and chef (by cookbooks and plugins, etc)
# but are considered private/experimental for now for the direct users of mixlib-shellout.
#
- # You can see an example of how to handle the "dependenecy injection" in the rspec unit test.
+ # You can see an example of how to handle the "dependency injection" in the rspec unit test.
# That backend API is left deliberately undocumented for now and may not follow SemVer and may
# break at any time (at least for the rest of 2020).
#
diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb
index d5eff79..7ece3d1 100644
--- a/lib/mixlib/shellout/windows.rb
+++ b/lib/mixlib/shellout/windows.rb
@@ -208,7 +208,7 @@ module Mixlib
# 4. if the argument must be quoted by #1 and terminates in a sequence of backslashes then all the backlashes must themselves
# be backslash excaped (double the backslashes).
# 5. if an interior quote that must be escaped by #2 has a sequence of backslashes before it then all the backslashes must
- # themselves be backslash excaped along with the backslash ecape of the interior quote (double plus one backslashes).
+ # themselves be backslash excaped along with the backslash escape of the interior quote (double plus one backslashes).
#
# And to restate. We are constructing a string which will be parsed by the windows parser into arguments, and we want those
# arguments to match the *args array we are passed here. So call the windows parser operation A then we need to apply A^-1 to
diff --git a/spec/mixlib/shellout/windows_spec.rb b/spec/mixlib/shellout/windows_spec.rb
index 1011560..2b273a6 100644
--- a/spec/mixlib/shellout/windows_spec.rb
+++ b/spec/mixlib/shellout/windows_spec.rb
@@ -190,7 +190,7 @@ describe "Mixlib::ShellOut::Windows", :windows_only do
end
end
- # quoted and unqouted commands that have correct bat and cmd extensions
+ # quoted and unquoted commands that have correct bat and cmd extensions
with_command("autoexec.bat", filename: "autoexec.bat") do
is_expected.to eql([ comspec, 'cmd /c "autoexec.bat"'])
end
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index 35757eb..0d444a3 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -460,7 +460,7 @@ describe Mixlib::ShellOut do
expect(shell_cmd.umask).to eql(002222)
end
- it "should set the timout" do
+ it "should set the timeout" do
expect(shell_cmd.timeout).to eql(timeout)
end
@@ -472,7 +472,7 @@ describe Mixlib::ShellOut do
context "when setting the :env option" do
let(:options) { { env: environment } }
- it "should also set the enviroment" do
+ it "should also set the environment" do
expect(shell_cmd.environment).to eql({ "RUBY_OPTS" => "-w" })
end
end