Class: HostPoolsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- HostPoolsController
- Defined in:
- app/controllers/host_pools_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 |
# File 'app/controllers/host_pools_controller.rb', line 4 def index end |
#list ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/host_pools_controller.rb', line 7 def list data = { :start => params[:start].to_i - 1, :limit => params[:limit] } host_pools = DcmgrResource::HostPool.list(data) respond_with(host_pools[0], :to => [:json]) end |
#show ⇒ Object
16 17 18 19 20 |
# File 'app/controllers/host_pools_controller.rb', line 16 def show host_pool_id = params[:id] detail = DcmgrResource::HostPool.show(host_pool_id) respond_with(detail,:to => [:json]) end |
#show_host_pools ⇒ Object
22 23 24 25 |
# File 'app/controllers/host_pools_controller.rb', line 22 def show_host_pools host_pools = DcmgrResource::HostPool.list respond_with(host_pools[0],:to => [:json]) end |