Sha256: 0522e1b898354092ef1a2b97d4ed051691c8c500a5366512d0c31351f851794b
Contents?: true
Size: 764 Bytes
Versions: 810
Compression:
Stored size: 764 Bytes
Contents
Puppet::Type.type(:exec).provide :shell, :parent => :posix do include Puppet::Util::Execution confine :feature => :posix desc <<-EOT Passes the provided command through `/bin/sh`; only available on POSIX systems. This allows the use of shell globbing and built-ins, and does not require that the path to a command be fully-qualified. Although this can be more convenient than the `posix` provider, it also means that you need to be more careful with escaping; as ever, with great power comes etc. etc. This provider closely resembles the behavior of the `exec` type in Puppet 0.25.x. EOT def run(command, check = false) super(['/bin/sh', '-c', command], check) end def validatecmd(command) true end end
Version data entries
810 entries across 810 versions & 5 rubygems