Method: Puppet::TrustedExternal.fetch_data
- Defined in:
- lib/puppet/trusted_external.rb
.fetch_data(command, certname) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/puppet/trusted_external.rb', line 38 def fetch_data(command, certname) result = Puppet::Util::Execution.execute([command, certname], { :combine => false, :failonfail => true, }) JSON.parse(result) end |