Class Puppet::Util::Puppetdb::Command
In: lib/puppet/util/puppetdb/command.rb
Parent: Object

Methods

config   format_payload   headers   new   submit  

Included Modules

Puppet::Util::Puppetdb Puppet::Util::Puppetdb::CommandNames

Constants

CommandsUrl = "/v3/commands"

Attributes

certname  [R] 
command  [R] 
payload  [R] 
version  [R] 

Public Class methods

Initialize a Command object, for later submission.

@param command String the name of the command; should be one of the

  constants defined in `Puppet::Util::Puppetdb::CommandNames`

@param version Integer the command version number @param certname The certname that this command operates on (is not

  included in the actual submission)

@param payload Object the payload of the command. This object should be a

  primitive (numeric type, string, array, or hash) that is natively supported
  by JSON serialization / deserialization libraries.

Public Instance methods

@api private

@api private

Submit the command, returning the result hash.

@return [Hash <String, String>]

[Validate]