Displaying 1 result from an estimated 1 matches for "svc_enabl".
Did you mean:
svc_enable
2009 Aug 18
1
[PATCH server] Add of a button destroy for disabled hosts.
...er.rb
@@ -80,6 +80,11 @@ class HostController < ApplicationController
:success => true
}
end
+
+ def destroy
+ alert = svc_destroy(params[:id])
+ render :json => { :object => "host", :success => true, :alert =>
alert }
+ end
def enable
svc_enable(params[:id], "enabled")
diff --git a/src/app/services/host_service.rb
b/src/app/services/host_service.rb
index 4ace9fb..2482f93 100644
--- a/src/app/services/host_service.rb
+++ b/src/app/services/host_service.rb
@@ -109,6 +109,21 @@ module HostService
@host.save!
end
end...