Revision bc11c17b
Added by Ewoud Kohl van Wijngaarden over 10 years ago
app/controllers/api/v2/hosts_controller.rb | ||
---|---|---|
resource_class.my_hosts
|
||
end
|
||
|
||
api :GET, "/hosts/:id/puppetrun", "Force a puppet run on the agent."
|
||
api :PUT, "/hosts/:id/puppetrun", "Force a puppet run on the agent."
|
||
param :id, :identifier_dottable, :required => true
|
||
|
||
def puppetrun
|
||
return deny_access unless Setting[:puppetrun]
|
Also available in: Unified diff
Fixes #4022: Make api puppetrun a PUT for REST standards