Class: Api::V2::HostsController
- Inherits:
-
Api::V1::HostsController
- Object
- ActionController::Base
- BaseController
- Api::V1::BaseController
- Api::V1::HostsController
- Api::V2::HostsController
- Includes:
- Api::Version2
- Defined in:
- app/controllers/api/v2/hosts_controller.rb
Instance Method Summary collapse
Methods included from Api::Version2
Methods inherited from Api::V1::HostsController
#create, #destroy, #index, #resource_scope, #show, #status, #update
Methods included from Api::Version1
Methods inherited from BaseController
#get_resource, #resource_class, #resource_name, #resource_scope
Methods included from Foreman::ThreadSession::Cleaner
Instance Method Details
#puppetrun ⇒ Object
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 |