serverspec-extra-types 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13915609f2ac72c2b26730ca0aa8d9758c4082c3552a28413230953fa486c560
|
4
|
+
data.tar.gz: 4541bb5af5c5fdb65c8a46592e8c563a5c4f61c00584f43c2358ce665e346310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59acd08fc5d4eb16244b65474882a3a94a1e5c7ee626d9f353e3cdcf8189496e58590adaa6dee240cfec59fc951121b2ab151b7220e3407850ee6d0dd39a7a01
|
7
|
+
data.tar.gz: d31d5150fc84ea9c8c80dbe1c08bf986a78710c80507e8f482b7df3fd1a9f9e563ad3386c9fc24ab546769c8747e7dd7393653ad7311f2bd3b5aaa6f7951b819
|
@@ -74,10 +74,12 @@ module Serverspec::Type
|
|
74
74
|
end
|
75
75
|
if /NOPASSWD:/.match? perm
|
76
76
|
chunks[:nopasswd] = true
|
77
|
-
|
77
|
+
commands = parts[2..-1].join(' ').split(',').map(&:strip)
|
78
|
+
chunks[:command] = commands.length > 1 ? commands : commands[0]
|
78
79
|
else
|
79
80
|
chunks[:nopasswd] = false
|
80
|
-
|
81
|
+
commands = parts[1..-1].join(' ').split(',').map(&:strip)
|
82
|
+
chunks[:command] = chunks[:command] = commands.length > 1 ? commands : commands[0]
|
81
83
|
end
|
82
84
|
end
|
83
85
|
|