search for: host_action

Displaying 3 results from an estimated 3 matches for "host_action".

2009 Aug 18
1
[PATCH server] Add of a button destroy for disabled hosts.
...y deleted." + end private def lookup(id, priv) diff --git a/src/app/views/host/show.rhtml b/src/app/views/host/show.rhtml index ddc6481..fe34401 100644 --- a/src/app/views/host/show.rhtml +++ b/src/app/views/host/show.rhtml @@ -7,6 +7,9 @@ <a href="#" onClick="host_action('enable')"> <%= image_tag "icon_start_11px.png" %> Enable Host </a> + <a href="#confirm_delete" rel="facebox[.bolder]"> + <%= image_tag "icon_delete_11px.png" %> Delete Host + </a>...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
...- end - - def test_destroy - #FIXME: this controller method does nothing, do we even need it or a test? - post :destroy, :id => @host_id - assert_response :redirect - assert_redirected_to :action => 'show', :id => @host_id - end - def test_disable_host post :host_action, :action_type => 'disable', :id => @host_id assert_response :success diff --git a/src/test/functional/managed_node_configuration_test.rb b/src/test/functional/managed_node_configuration_test.rb index b66705e..a0a66e9 100644 --- a/src/test/functional/managed_node_configuration_tes...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...em on hosts. Tat's overkill - the only way for a user - # to get to these actions is with URL surgery or from a bug in the - # application, both of which deserve a noisy error - def new - end - - def create - end - - def edit - end - - def update - end - - def destroy - end - def host_action action = params[:action_type] if["disable", "enable", "clear_vms"].include?(action) @@ -144,25 +110,4 @@ class HostController < ApplicationController render :json => bondings.collect{ |x| {:id => x.id, :name => x.name} } end - private -...