mixlib-shellout 3.1.2 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixlib/shellout.rb +3 -3
- data/lib/mixlib/shellout/helper.rb +2 -2
- data/lib/mixlib/shellout/version.rb +1 -1
- data/lib/mixlib/shellout/windows.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d472a1835c178c2edd0b5052302b618fc2be2195e10065da7a22c86991d9be0
|
4
|
+
data.tar.gz: 66b0a1507864ab17feb4b40bada11875cfee6b8e270b26d999732f2b798ec29a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5972f8c85ecfb02b769213f9ed73aa386ead5f0691830d035c31418979ce78cea5524675e7dc8fb2acadebdfd2e19397ef89a89014144365f87b19739c7439db
|
7
|
+
data.tar.gz: 1709b17d62c59a1095bdcab99abe35db194875be9725d2af98a133b77a94454ce68a99bec7cffb25228fb1e3cf284b27233d8c7ea36436ab1b515689ffe294fa
|
data/lib/mixlib/shellout.rb
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require "etc"
|
20
|
-
require "tmpdir"
|
19
|
+
require "etc" unless defined?(Etc)
|
20
|
+
require "tmpdir" unless defined?(Dir.mktmpdir)
|
21
21
|
require "fcntl"
|
22
22
|
require_relative "shellout/exceptions"
|
23
23
|
|
@@ -122,7 +122,7 @@ module Mixlib
|
|
122
122
|
# === Options:
|
123
123
|
# If the last argument is a Hash, it is removed from the list of args passed
|
124
124
|
# to exec and used as an options hash. The following options are available:
|
125
|
-
# * +user+: the user the
|
125
|
+
# * +user+: the user the command should run as. if an integer is given, it is
|
126
126
|
# used as a uid. A string is treated as a username and resolved to a uid
|
127
127
|
# with Etc.getpwnam
|
128
128
|
# * +group+: the group the command should run as. works similarly to +user+
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
|
18
18
|
require_relative "../shellout"
|
19
|
-
require "chef-utils"
|
19
|
+
require "chef-utils" unless defined?(ChefUtils)
|
20
20
|
require "chef-utils/dsl/default_paths"
|
21
21
|
require "chef-utils/internal"
|
22
22
|
|
@@ -30,7 +30,7 @@ module Mixlib
|
|
30
30
|
# These APIs are considered public for use in ohai and chef (by cookbooks and plugins, etc)
|
31
31
|
# but are considered private/experimental for now for the direct users of mixlib-shellout.
|
32
32
|
#
|
33
|
-
# You can see an example of how to handle the "
|
33
|
+
# You can see an example of how to handle the "dependency injection" in the rspec unit test.
|
34
34
|
# That backend API is left deliberately undocumented for now and may not follow SemVer and may
|
35
35
|
# break at any time (at least for the rest of 2020).
|
36
36
|
#
|
@@ -208,7 +208,7 @@ module Mixlib
|
|
208
208
|
# 4. if the argument must be quoted by #1 and terminates in a sequence of backslashes then all the backlashes must themselves
|
209
209
|
# be backslash excaped (double the backslashes).
|
210
210
|
# 5. if an interior quote that must be escaped by #2 has a sequence of backslashes before it then all the backslashes must
|
211
|
-
# themselves be backslash excaped along with the backslash
|
211
|
+
# themselves be backslash excaped along with the backslash escape of the interior quote (double plus one backslashes).
|
212
212
|
#
|
213
213
|
# And to restate. We are constructing a string which will be parsed by the windows parser into arguments, and we want those
|
214
214
|
# 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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-shellout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-utils
|