serverspec-extra-types 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d339d368681bfe976f4e61df84b2c01d0feb1e99cf2a3eab226020949979a23
4
- data.tar.gz: 6674563158154a4cf9e2b8639a76b816721e3e82e42ef7839b1c275bfa31e0b2
3
+ metadata.gz: 13915609f2ac72c2b26730ca0aa8d9758c4082c3552a28413230953fa486c560
4
+ data.tar.gz: 4541bb5af5c5fdb65c8a46592e8c563a5c4f61c00584f43c2358ce665e346310
5
5
  SHA512:
6
- metadata.gz: 8409da03cbc7b5442ee1a5e971a271ec96c7ccc719ec8c990aae5deae69ca131207109b174fc25c74c55a2d0a49bb6c78108ae3e73821ea8817aea008a7cb85a
7
- data.tar.gz: d8864f1a21975659cf835a2aa5e34a9746366ac0da4befe4934547eac49c736885156c0c61fa54eb251a9364684537ebd5590b34d335a306e5995796f49fd872
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
- chunks[:command] = parts[2..-1].join(' ').split(',').map(&:strip)
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
- chunks[:command] = parts[1..-1].join(' ').split(',').map(&:strip)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServerspecExtraTypes
4
- VERSION = '0.4.4'
4
+ VERSION = '0.4.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec-extra-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Wardrobe