Class: Api::V2::HostsController

Inherits:
Api::V1::HostsController show all
Includes:
Api::Version2
Defined in:
app/controllers/api/v2/hosts_controller.rb

Instance Method Summary collapse

Methods included from Api::Version2

#api_version

Methods inherited from Api::V1::HostsController

#create, #destroy, #index, #resource_scope, #show, #status, #update

Methods included from Api::Version1

#api_version

Methods inherited from BaseController

#get_resource, #resource_class, #resource_name, #resource_scope

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#puppetrunObject


10
11
12
13
# File 'app/controllers/api/v2/hosts_controller.rb', line 10

def puppetrun
  return deny_access unless Setting[:puppetrun]
  process_response @host.puppetrun!
end